Linux: How to Convert WEBP to JPG

By Xah Lee. Date: .

To convert webp to jpg format:

Install Webp Tools

# install webp
sudo apt-get install webp

(Ubuntu version 16)

After that, you'll have the following command line tools:

Convert From WebP to JPG

# convert from webp to png
dwebp mycat.jpg -o mycat.png

The dwebp tool can convert webp image to a non-lossy format such as png. After you got png, you can use other tool to convert it to jpg. Such as imagemagic.

# convert from png to jpg by imagemagic
convert mycat.png mycat.jpg

[see ImageMagick Tutorial]

Convert from JPG to WebP

# convert from jpg to webp
cwebp filename -o filename

If you have a question, put $5 at patreon and message me.

Image/Video Tutorial

  1. ImageMagick
  2. Convert WEBP to JPG
  3. Convert gif to Video
  4. Convert Video mov webm mp4
  5. View meta info in Image Files
  6. What's Gamma
  7. What's HDRI Image