Depending on your distro and desktop environment, image viewers may not have compatibility with Google’s WebP format.
Some Desktop Environments Support WebP Already
It’s been a while since the WebP format arrived on the scene, which means that there’s already a growing number of applications that support it. For Linux, developers have been no less than enthusiastic to incorporate support for this format in their own image viewers, with most desktop environments having one that inherently supports it. Currently, any distro that includes KDE Plasma or Deepin should be able to view these images natively through their own default image viewers. For KDE Plasma, this would be Gwenview. Deepin has the cleverly named “Deepin Image Viewer,” which shows up in most repositories as deepin-image-viewer.
Adding WebP Support Natively
If you don’t happen to have a desktop environment that inherently supports the WebP image format, all you need is a library to make the magic work! WebP GDK Pixbuf Loader is a small library that allows any GTK+ enabled desktop environment to thumbnail and open WebP images in its native image viewer. Most versions of Linux have some version or another of this software in their repositories, with the exception of Ubuntu-based systems where it resides in a third-party repository. For Ubuntu/Mint: Add the repository: Refresh your APT cache: Install the library: For RHEL/Fedora: For Arch Linux: If you still have issues opening images in your file explorer (e.g., an error shows up saying that an application can’t be found to open the file), you have to tell it to use your image viewer to open it by default. To do this, we are walking through the steps in GNOME, though the process is very similar in other desktop environments.
Open WebP Files in GIMP
There’s a good chance that if you’ve used Linux for a while, you’ve heard of GIMP. It’s the go-to image-editing suite for Linux users to replace tools like Adobe Photoshop. Although the GIMP way of doing things can be a bit janky, it can perform most of the tasks that people use Photoshop for without costing a kidney. It’s an absolutely essential piece of software, and if you haven’t installed it, you definitely should consider it. GIMP comes with compatibility for most image formats, including WebP out of the box. If it doesn’t include something you want, you’ll definitely find a plugin that does. For Ubuntu/Mint: For RHEL/Fedora: For Arch Linux: Once you’ve installed GIMP, instead of trying to open a WebP image right away, make sure to select it as a program to open ithe image with first. When that’s done, your desktop environment will open WebP images in GIMP, ready to be edited as you wish. You could even save the image as a PNG or JPEG by clicking “File -> Export As … “
Opening WebP Images in Your Browser
If installing software just to open a WebP image isn’t your kind of thing, you could always just use your browser to view it. Every modern browser that’s up to date has the ability to open and display images of various formats online, including native support for WebP. The standard was adopted relatively in the browser world, quickly following Google’s 2018 announcement. Open your browser and file manager and drag and drop the image onto an open tab. Your browser should immediately open the image and display it for you without any additional work needed! Image credit: a variety of different images on the theme of computers and high technology by 123RF WebP combines advanced compression algorithms with some aspects of lossless image rasterization to make a digital picture that contains the pristine, crisp quality that PNG is known for while occupying much less storage space. This is particularly useful in the Web, where bandwidth is precious and every image can become a bottleneck for page loading times. Unlike animated GIFs, WebP is capable of rendering images with an alpha channel, allowing for more consistent transparency. Although the GIF89a standard tried to fix this in 1989, it still struggles to properly make headway, even more than three decades later. With smaller file sizes, better compression, a dedicated alpha (transparency) color channel, and widespread support among browsers, WebP is a no-brainer for the image format of choice, even for animations. In short, make sure you’re using a browser that is up to date. This is important not just for the support of the WebP format but also your own safety while browsing the Web!