masterexploder / PHPThumb

PHP Thumbnail & Image Manipulation Library
http://phpthumb.gxdlabs.com
980 stars 264 forks source link

Fatal error: Allowed memory in GdThumb.inc.php #56

Closed supadema closed 12 years ago

supadema commented 12 years ago

Hi,

I've the same problem had somebody else in the closed issues...

It seems this is not alwyas depending of the size of the image, normally I get it with images that are more than 3MB but one time I got it with an image of about 1.2MB.

For this I would prefer don't limit the max size of uploading to 1MB.

So, I would like to know if there is a way to stop the script before I get the fatal error when happens that memory used is more than allowed memory

Thanks

masterexploder commented 12 years ago

There's no easy way to stop this, as different operations will require different amounts of memory... you'll have to implement something on your end based on your needs. Sorry