4

I received a collection of animated GIF images from a friend, but I am unable to open some of them them with the standard image viewer eog.

The error messages showing up when trying to open them include:

  • GIF image loader cannot understand this image

  • Circular table entry in GIF file

  • Stack overflow

However, the images are not corrupt, because I can open them with Firefox without problems, also with the ImageMagick viewer, which does not play the animation automatically though.

Examining the GIFs with file returns the output below, both for the images I can and cannot open (varying sizes though):

GIF image data, version 89a, 400 x 300

I want to be able to open all these images in eog. Can I somehow "fix" the "broken" images to make them readable for the standard image viewer, e.g. by using ImageMagick's conversion abilities to turn them into something else and back?

  • Maybe try opening it in gimp or any other image editor and save it again from there, maybe this will fix things. – Patrick Mevzek Feb 25 '17 at 15:04
1

Usually when some program can't open certain GIFs it's because of optimization used for this image.

You can try running imagemagick with -coalesce option. This will redraw each frame with all the details from previous frames. This will increase file size, but undo complex frame optimizations.

convert original.gif -coalesce unoptimized.gif

If this doesn't help, please provide a sample GIF with this problem.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.