Page 1 of 1

Removing metadata for animated GIF creates non-animated GIF

Posted: Fri Sep 11, 2020 7:52 pm
by tonifelfe
Not sure whether this is a bug or a feature - but a bad surprise!

Re: Removing metadata for animated GIF creates non-animated GIF

Posted: Mon Sep 14, 2020 2:51 pm
by mudo_j
Here are the metadata from a random animated gif, via ExifTool:

Code: Select all

---- GIF ----
GIF Version                     : 89a
Image Width                     : 400
Image Height                    : 206
Has Color Map                   : Yes
Color Resolution Depth          : 8
Bits Per Pixel                  : 7
Background Color                : 127
Animation Iterations            : Infinite
Frame Count                     : 56
Duration                        : 2.24 s
I believe without these instructions one can not expect the image viewer to be able to display the animation.

Re: Removing metadata for animated GIF creates non-animated GIF

Posted: Tue Sep 15, 2020 5:43 am
by tonifelfe
I understand. BUT: the GIF is after the operation smaller than before - i assume it contains only frame 1. That means that not only metadata were removed but frames 2+ too. And this is not a wanted behaviour.

Re: Removing metadata for animated GIF creates non-animated GIF

Posted: Tue Sep 15, 2020 2:13 pm
by mudo_j
Sorry for my useless answer.

If I my asks, how did you delete metadata from the animated gif, using XnViewMP?

Re: Removing metadata for animated GIF creates non-animated GIF

Posted: Wed Sep 16, 2020 7:26 am
by tonifelfe
Tools - Batch convert - Actions: Clean meta data - all checkboxes activated

Re: Removing metadata for animated GIF creates non-animated GIF

Posted: Wed Sep 16, 2020 11:10 am
by mudo_j
This way, I can't get a working animation, even without cleaning anything.

Re: Removing metadata for animated GIF creates non-animated GIF

Posted: Wed Sep 16, 2020 11:32 am
by tonifelfe
Right. As a workaround i will exclude GIF files from my workstream. A better solution would work with animated GIFs correctly.