I am recieving the following error:
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 8640 bytes) in /var/www/prod/scrapbooking/photoGallery/image-inc.php on line 81
I've read through a bunch of posts regarding this problem, but can't seem to get anything to work. Our php.ini file was 8mb and I increased it to 16mb and am still having problems.
We are using GD2.
The file size limit is set to 1200kb (1.2mb)
The allowable width x height is set to 600 w x 900 h
and PP is set to resize the images down from there.
I am trying to upload a photo of just over 1mb, and is 2160w x 1728h
and I continuously get the error above.
I've removed all directories in the upload directory, doubled the php.ini memory setting
Is there anything more I can try?
Unfortunately we've got users that insist that they're photos are "webready" when they're really way too big.
If nothing can be done in this regard, can you tell me what the exact limitations of GD2 are? in terms of file size and dimensions, before GD chokes?
Also is there a work around for files that might be too big dimensionally for GD to handle?
thanks for the help
Do you have SSH access? You could install Imagemagick that does not use PHP's memory like GD does.
I would have told you everything you read in the other threads however only other thing I can suggest is raise the limit to 32mb as this seems the norm to get GD to work alright.
I'm having the same problem - I'm on a shared hosting platform with Fasthosts, they have said that the maximum memory allocation they can support is 20mb, which will involve me moving to a new server, do you know if 20mb will be enough to make the app work without getting this error please?
Installing Imagemagick is apparently not an option with this ISP.
You can try 20mb sure but you might not be able to upload large images with gd2.
|All times are GMT -5. The time now is 02:35 AM.|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0