Advanced search  

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

Pages: [1]   Go Down

Author Topic: "Uploaded is corrupted or can't be handled by the GD library"  (Read 4344 times)

0 Members and 1 Guest are viewing this topic.

Pyrii

  • Coppermine newbie
  • Offline Offline
  • Posts: 4

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.
« Last Edit: March 11, 2007, 04:50:35 pm by Nibbler »
Logged

Pyrii

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: "Uploaded is corrupted or can't be handled by the GD library"
« Reply #1 on: March 11, 2007, 04:11:17 pm »

Attached picture of viewing in ACDSee which sees EXIF data.
Logged

Nibbler

  • Guest
Re: "Uploaded is corrupted or can't be handled by the GD library"
« Reply #2 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.
Logged

Pyrii

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: "Uploaded is corrupted or can't be handled by the GD library"
« Reply #3 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?
Logged

Nibbler

  • Guest
Re: "Uploaded is corrupted or can't be handled by the GD library"
« Reply #4 on: March 11, 2007, 04:26:24 pm »

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

Pyrii

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: "Uploaded is corrupted or can't be handled by the GD library"
« Reply #5 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.