Page 1 of 1

Animated GIF to animated WebP

Posted: 2013-05-16T11:33:21-07:00
by schtorch
Hi,

this is more a feature request. ImageMagick already supports the WebP format.

It would be great if ImageMagick would also convert an animated GIF to an animated WebP.

Example:
convert animated.gif animated.webp

Re: Animated GIF to animated WebP

Posted: 2013-05-16T12:02:18-07:00
by fmw42
I do not see WebP in the list of formats, but I do not have the WebP delegate installed.

Try

convert -list format

and see what it shows for Webp. Does it include + (for multipage format)

* native blob support
r read support
w write support
+ support for multiple images


You could try

convert animated.gif -coalesce animated.webp


From the official list http://www.imagemagick.org/script/formats.php

WEBP RW Weppy image format Requires the WEBP delegate library. Specify the encoding options with the -define option See WebP Encoding Options for more details.

So you might check that to see if there is a -define that allows that.

Re: Animated GIF to animated WebP

Posted: 2013-05-16T12:13:59-07:00
by schtorch
I have compiled IM with:
# ./configure --with-webp

results for me in:
# convert -list format | grep webp
WEBP* rw- WebP Image Format (libwebp 0.2.1)

Unfortunately no + support for multiple images

I get several single WebP images when running:
# convert animated.gif -coalesce animated.webp

Also no defines I could use from here:
http://www.imagemagick.org/script/webp.php

Re: Animated GIF to animated WebP

Posted: 2013-05-16T12:34:10-07:00
by fmw42
If none of that works, then the IM developers would have to make an enhancement to allow multiframe webp files. But they would have to comment. I know they are very busy with lots of other things including IM 7 development.

Re: Animated GIF to animated WebP

Posted: 2017-07-02T16:09:25-07:00
by degarb
Has this been fixed?

I can reduce jpgs 3x smaller using webp. I wish to also use webp on my animated radars.

Fixing animated webp could save me 200 megs a month on my data plan.

Re: Animated GIF to animated WebP

Posted: 2017-07-02T16:24:06-07:00
by fmw42
You can convert jpg to webp and save that format according to

Code: Select all

convert -list format
WEBP* WEBP rw- WebP Image Format (libwebp 0.6.0[0208])

But you need the libwebp delegate installed.

The issue mentioned above was to create multipage/multilayer/multiframe webp files. ImageMagick apparently does not support that since the listing does not say rw+ (indicated by the +).


According to https://en.wikipedia.org/wiki/WebP

"Amongst web browsers, Google Chrome, Opera and Pale Moon natively support WebP while Mozilla has announced plans to implement WebP natively in Firefox.[19][20][21][22] All WebM-compatible browsers can also display WebP via a JavaScript shim.[23][24] WebP can also be displayed in all major browsers using the WebPJS JavaScript library, although support in Internet Explorer 6 and above is achieved using Flash.[25]"

Re: Animated GIF to animated WebP

Posted: 2017-07-02T17:47:31-07:00
by degarb
Yes, I know I can convert to web P, however, I cannot do animations. There is another program out there, implemented by Google, but it looks like it only runs on Linux. I am still stuck.