Page 1 of 1

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

Posted: 2011-02-01T09:23:33-07:00
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

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

Posted: 2011-02-01T09:42:54-07:00
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.

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

Posted: 2011-02-01T10:11:37-07:00
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

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

Posted: 2011-02-01T10:38:52-07:00
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

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

Posted: 2011-02-03T03:50:17-07:00
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,

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

Posted: 2011-02-03T06:34:38-07:00
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.

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

Posted: 2011-02-03T07:17:44-07:00
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.

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

Posted: 2011-02-03T07:20:50-07:00
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.