Is there a way to prevent the PHP GD image library from running out of memory? If too large an image is uploaded, GD tends to run out of memory, terminating the script. I\'d
After you create an image.
imagepng($image); imagedestroy($image);
will remove the memory problem