class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
When resizing an image, it first has to be transformed in a kind of bitmap, then you need some more memory to actually resize. If you then add the size of your script to that, you can reach 8MB very quickly.Reply
You can add this in your script:
Or in a .htaccess file:
When resizing an image, it first has to be transformed in a kind of bitmap, then you need some more memory to actually resize. If you then add the size of your script to that, you can reach 8MB very quickly.