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.
It is actually a file size issue. It is also a file dimension issue.
The dimensions that you want (2272px wide) are too big for the memory you have available. What happens is that the class (GD actually) converts the image into a bitmap before resizing it, or compressing it. A bitmap will require a lot more room than the JPEG version of the same image.
So if you have a file with a great dimensions (a lot of pixels), and even though the file size is small (in KB), the class will require a lot of memory to process your image.
There is no way around but reduce the dimensions of your picture, or increase the memory limit on your host.Reply
The dimensions that you want (2272px wide) are too big for the memory you have available. What happens is that the class (GD actually) converts the image into a bitmap before resizing it, or compressing it. A bitmap will require a lot more room than the JPEG version of the same image.
So if you have a file with a great dimensions (a lot of pixels), and even though the file size is small (in KB), the class will require a lot of memory to process your image.
There is no way around but reduce the dimensions of your picture, or increase the memory limit on your host.