Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
No `pages` metadata for animated gif #1566
Maybe I'm doing something wrong but whenever I load an animated gif and do operations on it, I always end up with the first frame transformed and that's it.
In order to determine if this was due to something deep into our code, I looked more closely into the metadata reported by sharp for animated gifs.
From what I understand from the docs, an animated image is supposed to give a
If I input an animated monkey found online, I end up with a
Is this by design? Am I missing something?
Also, I saw outputting animated webp was supported but is outputting apng supported too? Could be nice to have a clear support grid somewhere in the docs where this kind of things would be listed. But I know how difficult and time-consuming writing docs can be ;)
Bonjour, it looks like sharp needs to expose libvips'
At the command line i see:
$ vipsheader -a small-animated-hear-see-speak-no-evil-moving-monkey.gif | grep page $ vipsheader -a small-animated-hear-see-speak-no-evil-moving-monkey.gif[n=-1] | grep page page-height: 157
So it looks like libvips itself also needs to expose the GIF page count too.
I dunno if this is related but I see not