forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: Pyrii on March 11, 2007, 04:07:28 pm

Title: "Uploaded is corrupted or can't be handled by the GD library"
Post by: Pyrii on March 11, 2007, 04:07:28 pm
Uploading images from my new P990i seem to not work, I get  this every time: "The image you have uploaded is corrupted or can't be handled by the GD library" in both normal and batch add mode.

http://the-banished.co.uk/gallery/albums/test/DSC00030.JPG

is the original image (Yum, pancakes)

Test account is: Testmember / bananarama


I have a feeling the way it's been compressed or EXIF etc data is messing things up.
Title: Re: "Uploaded is corrupted or can't be handled by the GD library"
Post by: Pyrii on March 11, 2007, 04:11:17 pm
Attached picture of viewing in ACDSee which sees EXIF data.
Title: Re: "Uploaded is corrupted or can't be handled by the GD library"
Post by: Nibbler on March 11, 2007, 04:11:34 pm
That file is corrupt:

Code: [Select]
nibbler[~]$ identify DSC00030.JPG
DSC00030.JPG JPEG 1600x1200 1600x1200+0+0 DirectClass 5.4e+02kb
identify: Corrupt JPEG data: 7 extraneous bytes before marker 0xd9 `DSC00030.JPG'.

Try opening it in an editor and resaving it.
Title: Re: "Uploaded is corrupted or can't be handled by the GD library"
Post by: Pyrii on March 11, 2007, 04:18:22 pm
Resaving did work. I don't quite like the idea of saving Lossy->Lossy because then you have to compress not only the image, but the noise created by the source.

Had a look at the hex and highlighted D9, not sure what I'm looking for as I'm no formats expert (Even though I have an assignment in this week on the differences between GIF and JPEG XD)

It seems all pictures from my P990i seem to have the same problem, is there a cause?
Title: Re: "Uploaded is corrupted or can't be handled by the GD library"
Post by: Nibbler on March 11, 2007, 04:26:24 pm
Try using ImageMagick instead of GD2. I tried your file with ImageMagick and it worked fine.
Title: Re: "Uploaded is corrupted or can't be handled by the GD library"
Post by: Pyrii on March 11, 2007, 04:45:14 pm
As it turns out, my host actually hosts the ImageMagick website so it came as standard, I just had to know where to find it =P

http://wiki.networkredux.com/redux/show/General+Inquiries

I do kinda wonder if there is a workaround for GD2 though... Hopefully there's enough data here to test it. I'll attach a copy of the image to this post incase anyone wishes to try. And change the password on that user, please ask if you need to test again.