Welcome Guest, Not a member yet? Register   Sign In
Releasing ressources from image lib
#1

[eluser]himself[/eluser]
Hi

I have a problem with processing images in a loop, for single images everything works, if i try to process several (2.5mb each) the server runs out of memory and I receive an error saying that GD cannot process it.

So my question, any way to cleanup after each iteration? I've tried the clear() method of the image lib, but (without having looked at the actual code) it seems it only resets the settings. I need to free all ressources (like the good old imagedestroy)

Does anyone have any ideas?

Thanks

Jonas
#2

[eluser]xwero[/eluser]
The methods all call the imagedestroy function internally.
#3

[eluser]himself[/eluser]
Figures :-)

Actually just found out that all the images in the loop was processed correctly, I just can't trust the image_lib->display_errors(); function. It contains the error i second iteration everytime, athough all files work. So thx. Now I just need to figure that one out




Theme © iAndrew 2016 - Forum software by © MyBB