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.
This is normal. In fact, you are running out of memory.
When you resize, crop, convert an image, the actual size in KB of the picture does not matter. Indeed, the picture is converted into a bitmap in memory, and then processed, and then saved, as a JPEG for instance.
As a bitmap, here's the number of pixels: 1000x1500=1500000 1238x2112=2614656 that one requires more memory
I think you need to multiply that amount by something like 8 (very rough approximation) just to estimate how much memory will be needed to process the picture, on top of the size that your application requires in memory.
Try to increase the memory limit of PHP to 48MB or more.Reply
When you resize, crop, convert an image, the actual size in KB of the picture does not matter. Indeed, the picture is converted into a bitmap in memory, and then processed, and then saved, as a JPEG for instance.
As a bitmap, here's the number of pixels:
1000x1500=1500000
1238x2112=2614656 that one requires more memory
I think you need to multiply that amount by something like 8 (very rough approximation) just to estimate how much memory will be needed to process the picture, on top of the size that your application requires in memory.
Try to increase the memory limit of PHP to 48MB or more.