Ubuntu – ImageMagick convert can’t convert to webp


On Ubuntu 12.04 ImageMagick doesn't seem to support webp.

convert flyer.png flyer.webp

Creates a png file with webp extension.

On webp docs is stated that ImageMagick does support webp

$ convert --version`
Version: ImageMagick 6.6.9-7 2012-08-17 Q16

I have these both installed:

  • libwebp-dev – Lossy compression of digital photographic images.
  • libwebp2 – Lossy compression of digital photographic images.

Also, convert can't decode a webp file.

What's wrong, and is this an Ubuntu bug?

Best Answer

Fixed in 16.04

In 16.04 convert flyer.png flyer.webp does work, although webp is needed:

sudo apt-get install webp

Without webp installed, this error message will show:

convert: delegate failed `"cwebp" -quiet -q %Q "%i" -o "%o"' @ error/delegate.c/InvokeDelegate/1310.
Related Question