NYCPHP Meetup

[nycphp-talk] GD w/ Lots of Files

Dan Cech dcech at phpwerx.net
Thu Aug 30 12:15:04 EDT 2007


Pete Czech - New Possibilities Group, LLC wrote:
> I'm trying to process 100-150 jpgs that are 2-4 mb into smaller files. 
> What advice/best practices can you guys share in regards to memory
> management?  I can make my job go through about 5 before it blows up,
> and yes, i've upped the memory limit.  I need some method to clear out
> memory after each loop iteration... Any ideas?

Are you using http://php.net/imagedestroy to clear out the memory after
each iteration?

Dan



More information about the talk mailing list