2012-02-18, 01:47:59
mvlcek Wrote:The most probable cause is an "Out of Memory" error. Many hosters have limits of 64MB to 128MB of RAM.
That's what I thought also, but some of these aren't necessarily large file sizes, and they resize with other gallery scripts just fine.
I'll see if i can add some debugging info and find where its dieing, or run it locally in a dev enviroment so i have better logging.
EDIT:
Yup memory error.
had to turn off error suppression on @imagecreatefromjpeg
I hate error supression, surely theres a global way to override that for degugging.
Allowed memory size of 67108864 bytes exhausted (tried to allocate 13824 bytes)
The built in image class fixes this with this.
Code:
ini_set('memory_limit', '-1');
Not sure of the consequences of it, but it works now.