in reply to Re: Corrupted data problem in copyResampled using GD.pm
in thread Corrupted data problem in copyResampled using GD.pm

The full size image is being corrupted because it too was uploaded too large, and therefor was copyResized the same way to make it a max of 600 pixels. I didn't want the directories filling up with 1MB files, so they are all checked for size and shrunk to 600 pixels max, then a thumbnail is created at 150 pixels max. Both processes use the same code, so the corruption happening in the original and the thumbnail are stemming from the same problem.

I'll look at any ^J or ^Z files in the data stream of the jpeg and see what I might find... -Brian
  • Comment on Re: Re: Corrupted data problem in copyResampled using GD.pm