I have had the DataObjectManager and ImageGallery installed on a website with absolutely no issues, runs amazingly. However it seems to have reached an invisible ceiling and wont take anymore images in a folder. The folder in question has 103 images, and image number 104 tips it over the edge and gives me this error message:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2560 bytes) in /home/horrigan/public_html/sapphire/filesystem/GD.php on line 24
I get the above error message on both the gallery page for that folder, and in the backend on the photos tab for that folder. I have increased the memory limit of php to 128M and this is confirmed in the phpinfo();.
I've only seen this happen when I upload a really large image. Resampling an image requires that the image data be stored in memory while it creates a new file, so the larger the input, the more memory it requires. The memory allocation is not additive, however. AFAIK, it is freed after each process, so the number of images in the gallery shouldn't matter.
So, are you uploading a large image? When does the error occur? After the upload or on the gallery page?
Ah sorry man, I checked everything except the obvious. I was busy with some other stuff yesterday and just took the easy route and posted here. Thanks for the quick response, it was just a large image it seems.
What kind of image is it and how/when does the upload fail? Several things could cause problems:
- unusual characters in the filename
- unrecognized file format (eg. bmp?)
- CMYK instead of RGB colorspace
- Image with different color-depth (more than the usual 8bit per channel)