Page 1 of 1

convert.im6: corrupt image

Posted: 2012-09-11T01:43:45-07:00
by voda
Hello,

when trying to resize an animated gif http://www.obecmokre.cz/knihovna/image. ... id=1109029 with this command:

Code: Select all

convert input.gif -strip -coalesce -resize '151x106' -layers Optimize output.gif
and get the following error:

Code: Select all

convert.im6: corrupt image `input.gif' @ error/gif.c/ReadGIFImage/1362.
convert.im6: no images defined `output.gif' @ error/convert.c/ConvertImageCommand/3044.
Using identify on the image works, viewing ti with a browser works too. I can open the image in gimp (it outputs some error: GIF: too much input data, ignoring extra..., GIF: bogus character 0x00, ignoring.) and after saving it convert can resize the image without any problem. Is this a bug in IM?

Thanks voda

Re: convert.im6: corrupt image

Posted: 2012-09-11T04:47:30-07:00
by magick
Your image is corrupt. Some viewers are forgiving and will display the image even if it finds an error in the data stream. ImageMagick does not for security reasons.

The corrupt frame is 36. You can display the first few frames with:
  • convert '64=65.gif[0-35]' image.gif

Re: convert.im6: corrupt image

Posted: 2012-09-11T06:03:57-07:00
by voda
Ok, thanks for the reply.
What is the best way to determine if convert will work (resize) with the image? I thought that running identify would be enough.

voda