|
Last updated: 09/06/2010
Many php
scripts that resize an image use the function: imagecreatefromjpeg (or another of the "imagecreatefrom" functions.
These functions use a lot of memory, and it's likely that your server is running out. This causes the resize to fail, usually without any error message, and no clue as to what happened.
To solve this problem, you can try bumping up the memory limits on your server, by adding a line like this in your script:
ini_set("memory_limit","30M");
I found this limit high enough to process a 1.5 MB image, but your mileage may vary.
-Jim
|