How can I convert animated gif to animated webp?

3

1

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?

Karlom

Posted 2018-05-17T11:23:36.543

Reputation: 147

Answers

4

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

Kinnectus

Posted 2018-05-17T11:23:36.543

Reputation: 9 411

Thanks for the tip. I saw that but don't know how to install it on Ubuntu? – Karlom – 2018-05-17T11:35:03.357

1See my addition – Kinnectus – 2018-05-17T11:42:53.093

1Great, please also add how to install it: apt install webp and use it: `gif2webp 1.gif -o 1.webp – Karlom – 2018-05-17T11:53:48.970

Would love it if someone made a GUI for this, heck, even if it's just zenity and made a PPA for it – Jonathan – 2019-04-28T07:30:43.110

Lol command line and a script is just s convenient ;) – Kinnectus – 2019-04-28T11:23:29.393