magick++ failed to read a gif image

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
collinmsn
Posts: 4
Joined: 2012-03-14T21:32:34-07:00
Authentication code: 8675308

magick++ failed to read a gif image

Post by collinmsn » 2012-03-15T01:21:38-07:00

I have a gif image that can display well on windows and can be opened by other gif viewers, but magick++ failed to open it.
how can i attach the gif file for R&D to debug it?

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

Re: magick++ failed to read a gif image

Post by magick » 2012-03-15T04:28:24-07:00

Post a URL to your image so we can download and inspect it. There are numerous free services for uploading images (e.g. Google / Dropbox).

collinmsn
Posts: 4
Joined: 2012-03-14T21:32:34-07:00
Authentication code: 8675308

Re: magick++ failed to read a gif image

Post by collinmsn » 2012-03-15T19:15:16-07:00

follow the link to access it. http://vdisk.weibo.com/s/3dV3I

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

Re: magick++ failed to read a gif image

Post by magick » 2012-03-16T04:37:54-07:00

Your GIF is corrupt. For example, gimp says "too much input data, ignoring extra". The gif2tiff program says "unknown GIF version number." The Gnome image viewer says "Could not load image." And of course ImageMagick says "corrupt image." We temporarily turned the "corrupt image" exception from an error to a warning and ImageMagick could display your GIF image. However, we won't do that for the public distributions. For security reasons, ImageMagick demands that all images meet the image format specification to avoid memory corruption and possible denial-of-service vulnerabilities. Some other utilities may not be concerned with security and will go ahead and process corrupt images.

If you can show that your GIF image is not corrupt and that the various utilities mentioned here are not interpreting your image properly, let us know and we will investigate further.

Post Reply