Re: imagedestroy()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Edward Vermillion wrote:
...
> a directory, about 5000 images are being counted. While the script
> worked fine when i wrote  it a few months ago, on the different system,
> I was recently trying to use it and was repeatedly getting memory limit
> errors at an 8MB limit. What the script does is load an image in memory,
> create three different thumbnail sizes for the image, imagedestroy() is
> being called after each thumbnail build to kill the thumb, and then
> finally I'm calling imagedestroy() at the end of the iteration for that
> image to kill the original in memory before going on to the next image.
...
> one. What I'm wondering is if anyone else has noticed this behavior, and
> aside from increasing the memory limit, have you found an alternative?
> I'm really trying to keep the scripts I have portable, so I haven't
> looked at ImageMagic, but I was wondering if the shmop functions might
> be the way to go with this. I do have reservations about using that
> though since it's not a 'default' in the build and I have some servers
> that I have no control over the software side of things, and I am trying
> to make these as generic as possible. If you've gotten this far thanks,
> sorry it turned out to be so long, but this is a rather important
> problem in what I'm coding.
>

<sarcasm>Ever heard of the paragraph?  You should look into it</sarcasm>

Strange that imagedestroy() is not freeing memory because, well, that's
what it is supposed to do.  I checked bugs.php.net and didn't find any
bug reports that match this description.  IMO you should submit a bug
report there and let the developers assess the problem.  My guess is
they will want to fix this.

--
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux