[thelist] Allocating memory for imagecreatefromjpeg

kasimir-k evolt at kasimir-k.fi
Thu Feb 9 06:46:34 CST 2006

Brooking, John scribeva in 09/02/2006 12:06:
> ... or worked around it in the past? 

I calculated what would be the memory need for biggest allowed image 
size, doubled it and then allowed for a bit more, thus arriving at this 
what I threw in my .htaccess file:
php_value memory_limit  96M
(could of course be done with ini_set() too)

It might not be the prettiest solution, but I've had no problems anymore.


More information about the thelist mailing list