Animated GIF to animated WebP

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
schtorch
Posts: 12
Joined: 2013-05-16T11:21:04-07:00
Authentication code: 6789

Animated GIF to animated WebP

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Animated GIF to animated WebP

Post 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.
schtorch
Posts: 12
Joined: 2013-05-16T11:21:04-07:00
Authentication code: 6789

Re: Animated GIF to animated WebP

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Animated GIF to animated WebP

Post 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.
degarb
Posts: 9
Joined: 2014-11-26T07:08:38-07:00
Authentication code: 6789

Re: Animated GIF to animated WebP

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Animated GIF to animated WebP

Post 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]"
degarb
Posts: 9
Joined: 2014-11-26T07:08:38-07:00
Authentication code: 6789

Re: Animated GIF to animated WebP

Post 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.
Post Reply