Posted by Peter van Schie on 07/14/05 01:44
steve park wrote:
>
>
> The error is coming when the class calls the imagecreatefromjpeg() function,
> and the specific error is
>
> Fatal error: Allowed memory size of 29360128 bytes exhausted (tried to
> allocate 8652 bytes) in <servername>/resize.php on line 51
Hi Steve,
You could try to get around this by adding a line like:
ini_set("memory_limit","30M");
at the top of your script.
Upgrading PHP or GD won't solve this problem. It's just a sign that the
resize script is pretty inefficient with memory. ;)
HTH.
--
http://www.phpforums.nl
[Back to original message]
|