36

Is there any way to see WebP photo from Thunar with Xfce DE? There was a similar question, but it was about nautilus.

Then to get WebP thumbnails tumbler (the Xfce thumbnailing service) must support, and there are nothing.

Then to open pictures, the viewer must know WebP.

I tried ristretto, gpicview, viewnior and they all say something like:

error of interpretation of the image file format jpeg

Pablo Bianchi
  • 15,657
  • I still convert them into some more common format with a bash script: https://askubuntu.com/a/1306737/1157519 – Levente Jun 13 '21 at 18:03

9 Answers9

35

Here are the Linux image-viewers, that display webp images:

And others, from Wikipedia.

Pablo Bianchi
  • 15,657
Robert Fleming
  • 101
  • 2
  • 4
9

If you are looking for GUI applications, consider GIMP or ImageMagick.

If you have installed the webp package, you could use vwebp file.webp to view the image, and dwebp file.webp -o file.png to convert it to a png file.

See https://developers.google.com/speed/webp/docs/using for details.

serv-inc
  • 3,059
wxhhh
  • 91
  • 2
    Also, to convert multiple webp files to png, use this: alias convertwebp="find ./ -name "*.webp" -exec dwebp {} -o {}.png \;; find . -type f -name '*.webp' -delete" – Nav Jul 12 '20 at 16:07
7

qView

qview

Since 2018, there is a really lightweight and user-friendly image viewer called qView that can view WebP images. It also has a nice feature to resize the window frame to fit the image. It is also free and open source.

You can download the latest version (3.0 at the time of writing, and it's still being actively developed) as a .deb file from the official website or GitHub and install it with gdebi or your software center.

To install from terminal:

sudo add-apt-repository ppa:jurplel/qview
sudo apt update
sudo apt-get --install-suggests install qview

After you install the .deb file, you also need to install this package: Qt 5 Image Formats add-on

sudo apt install qt5-image-formats-plugins

This is because qView is based on Qt5 and even though it supports many common formats by default, it does need this one package to actually view WebP images.

Note: this add-on is pre-installed on Lubuntu and Kubuntu (Qt-based DEs, as expected).

Tested on Ubuntu 18.04, 20.04; Lubuntu 19.10, 20.04.

Pablo Bianchi
  • 15,657
Calico Cat
  • 1,296
5

In 16.04

display 'vid:*.webp'

Since 16.04 imagemagick does support webp, although it apparently delegates decoding to webp, so webp is needed:

sudo apt-get install webp
Janghou
  • 5,709
4

XNViewMP can view WebP files. Though Tumbler has yet to implement WebP, so the files won't be able to be viewed as thumbnails within Thunar.

Note that it is a non-free software, although freeware.

Archisman Panigrahi
  • 28,338
  • 18
  • 105
  • 212
2

gThumb also opens/edits webp files. It has some nice must have quick editing tools.

sudo apt-get install gthumb

Version 3.4.3 I know supports webp, but does not support animated webp images.

  • Sorry Jeff, but this is a repeat of the answer above; unless you add - starting with which version gThumb supports webp ? – Alexander Filёv Oct 22 '19 at 20:42
  • 1
    Your right it is, but I wanted to tell people because gthumb is awesome. I added the version you requested. Thanks for commenting. – Jeff Luyet Oct 25 '19 at 18:53
  • gthumb not support animated webp images, but qview can. – 林果皞 Jan 31 '22 at 12:20
  • @林果皞, I've verified what your saying about gthumb and have updated my answer, thank you for commenting. Your also right, qview does support animated webp images. – Jeff Luyet Feb 01 '22 at 03:41
1

Developed by Google, WebP is a new image format that provides lossless and lossy compression for images on the web.

You can download a WebP viewer, and other utilities from Google Developers

Mitch
  • 107,631
  • Precompiled WebP utilities and library for **Linux**, Windows and Mac OS X. from the same site. So its downloadable for Linux. – Mitch Nov 01 '14 at 13:33
  • Yes, I've seen it, and even set the system libwebp, but the problem is how to do to make things work together lib->thumb->viewer I can not understand. /if possible, then sign for gyide – Alexander Filёv Nov 01 '14 at 13:40
0

You can use the stylish looking deepin-image-viewer (from Deepin project, a Linux distro based on China) for WebP.

Pablo Bianchi
  • 15,657
0

GIMP works well. "Save image as" from the website, navigate to where you saved it, right click "open with", select GIMP and you can then use "File - export as" to export the image from GIMP to your desired destination , remembering to change ".webp" to ".jpg" so that any of your normal programmes will open it.