convert.im6: corrupt image

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
voda
Posts: 3
Joined: 2012-07-31T05:19:44-07:00
Authentication code: 15

convert.im6: corrupt image

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: convert.im6: corrupt image

Post 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
voda
Posts: 3
Joined: 2012-07-31T05:19:44-07:00
Authentication code: 15

Re: convert.im6: corrupt image

Post 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
Post Reply