GIF file views ok in IE, paint etc but ImageMagick fails

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
paulm
Posts: 6
Joined: 2010-12-14T09:16:38-07:00
Authentication code: 8675308

GIF file views ok in IE, paint etc but ImageMagick fails

Post by paulm »

Hi,

Hope this is the right place, I havent posted a bug before.
On the latest release version of IMDisplay if I try to open this file it fails with error "corrupt image ... error/gif.c/ReadGIFImage/1337"
However Paint and IE etc show the image correctly.
http://imageshare.web.id/images/6iybyxc1qmvp86oim55.gif

Please tell me what is going on here ?

Thanks in advance,

Paul
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: GIF file views ok in IE, paint etc but ImageMagick fails

Post by magick »

The image is corrupt. Gimp, for example, returns "too much input data, ignoring extra.." and "bogus character 0x00, ignoring.". For security reasons, ImageMagick refuses to process corrupt images as it might be a data-driven exploit.
paulm
Posts: 6
Joined: 2010-12-14T09:16:38-07:00
Authentication code: 8675308

Re: GIF file views ok in IE, paint etc but ImageMagick fails

Post by paulm »

Thanks for the fast response :-)

I installed Gimp 2.6.11 for windows and the file seems to open ok - can you tell me what you did to get your gimp diagnostics ?

Thanks,
Paul
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: GIF file views ok in IE, paint etc but ImageMagick fails

Post by magick »

Gimp 2.6.11, Fedora Linux. It looks like the last frame is corrupt. It has 4 rows but only 1 is read before there is corruption. We can convert the image by skipping the last frame, like this:
  • convert '6iybyxc1qmvp86oim55.gif[0-57]' image.gif
paulm
Posts: 6
Joined: 2010-12-14T09:16:38-07:00
Authentication code: 8675308

Re: GIF file views ok in IE, paint etc but ImageMagick fails

Post by paulm »

I downloaded gimp for ubuntu version 2.6.10 and can open the gif ok.
Where should I see these encoding errors ? Do I have to look at a particular froame or certain settings ?

Thanks,
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: GIF file views ok in IE, paint etc but ImageMagick fails

Post by magick »

Encoding errors inside a GIF image is outside the scope of this forum. If you have a specific ImageMagick question, let us know.
paulm
Posts: 6
Joined: 2010-12-14T09:16:38-07:00
Authentication code: 8675308

Re: GIF file views ok in IE, paint etc but ImageMagick fails

Post by paulm »

I understand, but I need to prove to a customer that there is a problem with the image, and that it is not a bug in Imagemagick despite the fact that it can be viewed happily in Paint, Paint Shop Pro, IE, gimp etc.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: GIF file views ok in IE, paint etc but ImageMagick fails

Post by magick »

Three different programs we use complain about the image. Its corrupt. We could trace the source of corruption but like we said that's beyond the scope of this forum.
Post Reply