PDA

View Full Version : Problem uploading large pixel size images


EvilArcana
Mon 9th Jun '08, 8:56pm
I think the problem is a failure during thumbnail generation. The image is 1.08 Mb...but is 7000x5000 pixels...

Is there any limits to ImageMagick 6 or GD that would prevent this size image from being processed?

I don't seem to be having any other errors...I'm pretty sure its thumbnail generation, but I can't be sure.

BTW...all I get is a white empty screen on the upload window.

Edit: This is a quote from one of my community leaders (moderators) where he found the problem...That post was made while I was configured for GD...since switching to imagemagick 6 I am unable to even get the large picture uploaded.


I tried uploading it here and got the same results. I suspect it is the forum software crapping out in the thumbnail generation, not because of the physical size of the file but the pixel size of the file.

I don't know how the systems resizes (gd vs imagemagick) but it might be having a memory problem as the image size is 35.8MP when opened.

I created one exact 35 MP (7000x5000) and attached it here without a problem (expect the thumbnail generation seemed to have failed). I manually created a 7020x5100 as well, and it, too failed with a white screen, even through the actual file size if a few hundred KB.

Andy Huang
Mon 9th Jun '08, 9:47pm
Images greater than 2000x2000, from personal experience, doesn't seem to work too well via PHP because either PHP process run out of resource limit, or gets killed by proc watcher on the server.

You may want to contact your server administrator to see what kind of resource limitations are on your server, and what size they recommend to be the largest image you can re-size via GD/Imagemagick.

EvilArcana
Tue 10th Jun '08, 12:59am
2000x2000...wow thats small...considering I run a mapping website hehehe lots of large scale map related images.

But as long as I at least know its a limitation of the image manipulation software and not vbulletin...I'll call my host tomorrow...thanks!

EvilArcana
Tue 10th Jun '08, 2:15pm
Is there a way to bypass thumbnail generation if an image dimensions are beyond a certain range? The files are falling within file size limits, but are bombing on thumb gen.

Andy Huang
Tue 10th Jun '08, 8:18pm
I used to run a forum for people to post scans of magazine covers and what not, so I understand fully what you mean by it is "small"... But the problem comes from the technologies and not vB code, so it is quite problematic for most people.

You can add these two lines to the bottom of your config.php (if they're not already there), and edit the setting as you see fit to make vbulletin not generate the thumbnails:
$config['Misc']['maxwidth'] = 2592;
$config['Misc']['maxheight'] = 1944;