tibberous Posted April 29, 2009 Share Posted April 29, 2009 I have a script that needs to resize very large images - but it keeps hitting the memory limit. I can increase the memory limit, but is there another way to handle it? Quote Link to comment https://forums.phpfreaks.com/topic/156169-resizing-huge-images/ Share on other sites More sharing options...
premiso Posted April 29, 2009 Share Posted April 29, 2009 The code can be improved, but it all depends. To resize an image you tend to need about 2-3 times the size of the picture memory limit, but again it depends on the code. Because you have to read in the picture, create it as an image then take that image and resize it to a new image (unless you want to original resized) then you have that image. But my bet is your code is eating up the memory in an non-efficient manner and can be cleaned up to use less memory. Show some code and maybe we can help you make your code more efficient. Quote Link to comment https://forums.phpfreaks.com/topic/156169-resizing-huge-images/#findComment-822149 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.