PHP imagecreatefromjpeg() Failing with a large image

Wednesday, November 4, 2015

I have a script for cropping images which appears to be failing when I call 'imagecreatefromjpeg()', when creating the image from the source file.



It works for most images, even of a large filesize, one test file of 16mb works fine.



However one image keeps failing, this image is much larger in terms of dimensions and dpi than the others however only 1.4mb in file size.



It's 8000px by 5600px and 300dpi.



Does anyone have any experience with this or any ideas on on why it would be failing?



PHP does report the max memory usage on the script. memory_limit is currently set to 128mb server side.



Thank you in advance

0 comments:

Post a Comment