Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using ubuntu 12.04. I've installed libwebp2 & libwebp-dev

So far, no example found on the net of converting webp to jpg.

Some webp files can easily converted by using imagemagick with command

convert file.webp file.jpg

but lots of webp files cannot be converted and give error:

convert: no decode delegate for this image format `file.webp' @ error/constitute.c/ReadImage/532.
convert: missing an image filename `file.jpg' @ error/convert.c/ConvertImageCommand/3011.


This is the file: http://www.filedropper.com/file_144

share|improve this question
Could you post some of the files that cannot be converted so we can have a go? – terdon Mar 30 '13 at 17:39
Any errors when ImageMagick fails to convert? – dartonw Mar 30 '13 at 17:44
@dartonw Error has been updated – apasajja Mar 30 '13 at 17:51
@terdon I have no idea any image hosting support webp – apasajja Mar 30 '13 at 18:05
Strange that IM would convert some webp files and not others. Can the ones that fail be viewed in a browser or image editor (perhaps they are corrupt)? How did you install IM? AFAIK, it needs to be specifically compiled with webp support after installing libwebp[-devel]. – dartonw Mar 30 '13 at 18:45
up vote 17 down vote accepted

Google already provided the tool to decode webp images (in the libwebp package, your uploaed file works on Arch)

dwebp file.webp -o abc.png

For the encoding tool, check the cwebp command.

And you might consider using this online tool.

share|improve this answer
Unfortunately dwebp only converts webp to png, but not to jpg. – rumpel Oct 29 '13 at 8:30
@rumpel thx, it failed to open the .jpg, but when I put .png it worked! – Aquarius Power Dec 8 '14 at 3:49
In 14.04 I needed to install the package webp it was not available until I installed that. I was confused because I had install all the libwebp and libweb-dev packages. – TryTryAgain May 5 '15 at 17:29
works on fedora/EL, just install libwebp-tools – Michel Samia Mar 24 at 13:08
Use dwebp for webp->png, and then convert for png->jpg. Using pipe. dwebp 1.webp -o - | convert - 1.jpg – steve Jul 15 at 17:57

Convert all webp files within a directory

find ./ -name "*.webp" -exec dwebp {} -o {}.png \;

Note: dwebp is in the libwebp package

share|improve this answer

There is another online tool available here which can help you on this:

but if you want a local tool, you can use this one:

and use it like this:

1) chmod a+x webpconv

2) ./webpconv -format PNG <YOUR_WEBP_FILE>.webp

The overall structure is like this:

webpconv [-output_dir dir] [-format format] [-quality quality] input_file(s)

Example) To convert a .png image to WebP with a quality of 90 you would enter:

webpconv -quality 90 /home/user/image_name.png

and to convert a WebP file to a PNG one:

webpconv -format PNG /home/user/image_name.webp

share|improve this answer

I found this method faster for my 1 time need.

  1. Take screenshot with webp image open in chrome.
  2. Paste into paint program.
  3. Crop and save.
share|improve this answer
The questioner was looking for a command line solution... – jasonwryan Jun 10 '14 at 4:06
I think it could be made as a command line by using Shutter and taking a screenshot of a window without window decorations, all in a script; could be fun to code :) – Aquarius Power Aug 11 '14 at 22:30

To convert multiple jpg to webp, using cwebp:

find ./ -name "*.jpg" -exec cwebp -q 70 {} -o {}.webp \

Thunar Custom Action:

for file in %F; do cwebp "$file" -o "${file%%.*}".webp; done

Thunar Custom Action, moving webp images to subfolder:

mkdir %d/webp && cd %d; for file in %N; do cwebp "$file" -o "webp/${file%%.*}".webp; done

Cwebp's default quality setting is 75.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.