I have Drupal set to allow 32 meg uploads, just for troubleshooting this. I want to upload a 914 KB image file - not even one meg. I get a blank page, and I get this in the error logs:

[error] [client 71.219.137.215] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2592 bytes) in /usr/local/apache2/drupal5/includes/image.inc on line 308

Any ideas?

Comments

brasto’s picture

I don't mean to just bring this back to the top. I waited 2 days, just hoping someone will know why this happens.

Brandon Stout
http://mscis.org
http://flfn.org

heine’s picture

See the FAQ: http://drupal.org/node/76156

Processing images takes lots of memory, depending on its resolution and color depth. The tried to allocate is just the amount PHP tried to allocate on a certain point in time, on top of all the memory it already had allocated previously.

--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.

doc2@drupalfr.org’s picture

Same problem. Trying to resolve. Found similar topic: http://drupal.org/node/171696

doka’s picture

This error pops up for me at large image dimensions, even at small (1-2MB) pictures. I guess the real limit is not the size of the pictures in MB, but its horizontal and vertical dimensions. A quick fix is to decrease the dimensions for each pictures.

Does anybody has a better solution? I'm at the max memory limit.

Doka

Doka

doc2@drupalfr.org’s picture

I got the answer in drupal.org book pages and associated links. Sorry, no quick link to give you though. Good luck.