How can I convert animated gif to animated webp?
On ubunt, I can convert animated .gif files to .webp format using imagemagick's convert 1.gif 1.webp
, but then the animation is lost in the destination .web.
I'm wondering how to preserver the animation while transfoming the format?
Solution 1:
ImageMagick doesn't have the ability to convert animated GIF to WebP. For this you should consider Google's gif2webp.
Google support page for gif2webp: https://developers.google.com/speed/webp/docs/gif2webp
A quick search shows that gif2webp is part of the "webp" package for Ubuntu and has .deb packages available here: https://packages.ubuntu.com/search?keywords=webp under section "Exact hits"
To install on Ubuntu:
sudo apt-get update
sudo apt-get install webp
Basic command line usage:
gif2webp input.gif -o output.webp