I'm using the functions provided in the GD Library to generate thumbnails and preview images for larger files that are uploaded to my server.
Everything works fine except when JPG files are too big. For instance, I have a 1mb JPG file that produces a "500: Internal Server Error" message.
I thought maybe it was the JPG formatting. I tried saving this image in baseline-standard, baseline-optimized, and progressive. The result was the same on every format.
Then, I thought maybe that the image was corrupt, so I opened up photoshop and created a 360dpi image, drew random shapes, and saved it as a new baseline JPG. This file errored in the same way.
I think that when a file gets too big it causes GD to crash and send back the error message. Files about 600k worked. It's only when they get a bit larger, that I receive this problem.
Does the GD library specify the exact pixel dimensions it can process? If so, is there a way I can increase the maximum image size that it can handle? Do I need to find a different library that can handle large files?