This is a quick courtesy post, since it took me a bit to work out the solution - despite searching on here.
I encountered problems when uploading or importing large files (>1.5mb), such as original digital camera shots.
After a bit of hunting, reviewing the Apache error log, etc, I tracked it down to the PHP memory limit setting. This an excerpt from the phpthumb class config file (phpthumb is used to resize the images):
// maximum number of pixels in source image to attempt to process entire image. // If this is zero then no limit on source image dimensions. // If this is nonzero then this is the maximum number of pixels the source image // can have to be processed normally, otherwise the embedded EXIF thumbnail will // be used (if available) or an "image too large" notice will be displayed. // This is to be used for large source images (> 1600x1200) and low PHP memory // limits. If PHP runs out of memory the script will usually just die with no output. // To calculate this number, multiply the dimensions of the largest image // you can process with your memory limitation (e.g. 1600 * 1200 = 1920000) // As a general guideline, this number will be about 20% of your PHP memory // configuration, so 8M = 1,677,722; 16M = 3,355,443; 32M = 6,710,886; etc.
It is saying that the function runs out of memory for larger images. Not sure what the default setting is for PHP, but I increased mine from 8M to 48M and now can add very large images without a hitch.
Incidentally, I did not alter the php.ini file, I inserted this code:
How would I proceed if I'm experiencing this problem and my web host runs php in safe mode? I know my host will continue running in safe mode so the php.ini file will have to be edited. Is there a way for me as a user to get around it, or is it only my web host that can solve this issue?
Well... I've tried that, but it doesn't seem to solve my problem. I still recieve a blank screen after pressing Import. Do you want to test it out in my gallery?
It's been trying to solve this problem for almost 3 working nights till now, I try to search but to know avail, I tried your suggestions and BINGO it solves my issues..Keep up the good work.