"Uploaded is corrupted or can't be handled by the GD library" "Uploaded is corrupted or can't be handled by the GD library"
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

"Uploaded is corrupted or can't be handled by the GD library"

Started by Pyrii, March 11, 2007, 04:07:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pyrii

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.

Pyrii

Attached picture of viewing in ACDSee which sees EXIF data.

Nibbler

That file is corrupt:


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.

Pyrii

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?

Nibbler

Try using ImageMagick instead of GD2. I tried your file with ImageMagick and it worked fine.

Pyrii

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.