AdRock Posted April 15, 2009 Share Posted April 15, 2009 I've been having trouble with my upload script running out of memory. The reason for it is becuase i want to create a small thumbnail and create a larger image to be displayed. It creates the thumbnail fine but when it goes to create the larger image, it runs out of memory. Is there a way I can clen up the memory after creating the thumbnail or is the another way i can create the thumbnail then call another function or redirect to another page to do the other resize. I need to be able to create a thumbnail and larger image in one go Link to comment https://forums.phpfreaks.com/topic/154251-solved-clean-up-memory-after-image-upload/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 15, 2009 Share Posted April 15, 2009 imagedestroy Link to comment https://forums.phpfreaks.com/topic/154251-solved-clean-up-memory-after-image-upload/#findComment-810945 Share on other sites More sharing options...
mandred Posted April 15, 2009 Share Posted April 15, 2009 Use the imagedestroy() function. edit - PF beat me to it. Link to comment https://forums.phpfreaks.com/topic/154251-solved-clean-up-memory-after-image-upload/#findComment-810948 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.