I have installed Drupal 5.10 and Image 5.x-1.9.

I normally can upload image on my website, till 800 / 900 kb without having memory to overflow...

Today trying to upload an image of only 300 kb dimension I had the following error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 15476 bytes) in /home/hosting/mydomain.ext/includes/image.inc on line 326

My server has the php variable "memory_limit" set to 32Mb (i.e. the above value of 33554432 bytes).
If it was tried to allocate only 15476 bytes, why the script crashed?

Thanks,
Michele.

Comments

Leeteq’s picture

Category: bug » support

These days 32mb is not a lot of memory and might prevent certain functions in Drupal from working properly. You might simply need higher limit.

zoo33’s picture

Status: Active » Fixed

If you can't raise the memory limit, you may work around the problem by using the ImageMagick image toolkit (see INSTALL.txt) rather than GD. GD typically requires more memory from the web server process.

By the way, your 300 kb image may in fact be larger (contain more pixels) than the 900 kb one. That's because image compression is more efficient on some images than others.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.