Page 1 of 1

GD and Memory Allocation

Posted: Tue Jan 24, 2006 9:04 pm
by neophyte
While resizing images I got this error:
Fatal error: Allowed memory size of 13651808 bytes exhausted (tried to allocate 8192 bytes)
Is this a limitation of GD? php.ini memory allocation? What can be done to avoid this?

Posted: Tue Jan 24, 2006 9:27 pm
by neophyte
This worked...

Code: Select all

ini_set("memory_limit","24M");

Posted: Tue Jan 24, 2006 9:31 pm
by Buddha443556
Darn my slow typing!!

Posted: Tue Jan 24, 2006 9:35 pm
by neophyte
:lol: :lol:

Been there...

:lol: :lol:

Thanks anyway!

Posted: Tue Jan 24, 2006 9:48 pm
by josh
I usually set the memory limit to 0 in development, especially since the project I'm working on now has a lot of image-resizing all done in GD, I also got the maximum execution time set to unlimited so I can traverse directories thumb-nailing 100's of thousands of photos at a time.

Posted: Tue Jan 24, 2006 10:02 pm
by neophyte
Serious? 100's of thousands? Wow!