HomeLinuxFind out how to View WebP Photographs in Ubuntu and Linux Mint

Find out how to View WebP Photographs in Ubuntu and Linux Mint


Developed by Google with the principle goal of creating loading instances quicker throughout the web, WebP (pronounced “weppy”) is a contemporary picture format and a alternative for JPEG, PNG, and GIF file codecs.

In comparison with different picture codecs, webp provides superior lossless and lossy compression for photos on the internet. WebP is among the many tasks by Google that helps its mission to make the net quicker.

On Ubuntu-based and RHEL-based Linux distributions, the default picture viewer doesn’t help .internet format photos.

In case you attempt to view WebP picture together with your default picture viewer or internet browser, you’ll get the next error:

Couldn't load picture XYZ.webp
Unrecognized picture file format
could not load image webp error
couldn’t load picture webp error

To permit GDK purposes resembling Eye of Gnome (GNOME Picture Viewer) to have the ability to view WebP photos and animations, you should set up the webp-pixbuf-loader bundle.

WebP GDK Pixbuf Loader library is a third-party bundle and isn’t accessible for set up from the official repositories. You’ll be able to set up it from a PPA (Private Bundle Archive) owned by Jonathan Yip.

Allow WebP Help to GNOME Picture Viewer in Linux

On Ubuntu-based distributions, run the next command so as to add the PPA (Private Bundle Archive) to your system, then replace the APT bundle supervisor’s bundle cache to select the record of the newest software program inside configured repositories within the system and set up the bundle.

$ sudo add-apt-repository ppa:helkaluin/webp-pixbuf-loader
$ sudo apt replace
$ sudo apt set up webp-pixbuf-loader

On Fedora, customers ought to run the next command to put in it:

$ sudo dnf set up webp-pixbuf-loader

On RHEL and different enterprise Linux distributions, allow the EPEL repository, then set up it as follows:

$ sudo yum set up epel-release
$ sudo dnf set up webp-pixbuf-loader

On Arch Linux, concern the next command:

$ sudo pacman -S webp-pixbuf-loader

To check if the bundle is working, open the default picture viewer in your Ubuntu or Linux mint desktop and look at a webp picture with it.

Open WebP Image in Linux
Open WebP Picture in Linux

After opening the picture, you need to be capable to view it with none error as proven within the following screenshot.

View WebP Image in Linux
View WebP Picture in Linux

View WebP Photographs Utilizing gThumb Picture Viewer in Linux

gThumb is a picture viewer and browser for the GNOME setting that comes with Webp help. You’ll be able to set up it in your Linux distribution utilizing your bundle supervisor as proven:

$ sudo apt set up gthumb          [On Debian, Ubuntu and Mint]
$ sudo yum set up gthumb          [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a media-gfx/gthumb  [On Gentoo Linux]
$ sudo apk add gthumb              [On Alpine Linux]
$ sudo pacman -S gthumb            [On Arch Linux]
$ sudo zypper set up gthumb       [On OpenSUSE]    

As soon as the bundle is put in, find the place the .webp picture is, right-click on it, then go to Open with, and click on Different software.

From the record of purposes, seek for gThumb and set it because the default software for opening and viewing Webp information/photos. Then click on OK, as highlighted within the following screenshot.

Open WebP Image in gThumb
Open WebP Picture in gThumb

Now you need to be capable to open and look at your WebP photos.

View WebP Image in gThumb
View WebP Picture in gThumb

Notice that when you intend to transform your photos from PNG and JPEG to webp format, you should use the dwebp or cwebp conversion instruments as described under.

Convert WebP Photographs to PNG or JPEG Utilizing dwebp Utility

To transform/decompress a Webp file right into a PRN/JPEG picture format on the command-line interface, you should set up the webp bundle as proven.

$ sudo apt set up webp

If the set up is profitable, you need to now have a utility known as dwebp (which is a part of libwebp) that you should use to transform .webp photos to .png or .jpeg.

The next is an instance the place the -o flag specifies the output filename:

$ dwebp picture.webp -o picture.png
$ dwebp picture.webp -o picture.jpeg
Convert WebP to PNG or JPEG in Linux
Convert WebP to PNG or JPEG in Linux

For extra data, examine the person web page for dwebp:

$ man dwebp

Convert PNG or JPEG to WebP Utilizing cwebp Utility

To transform a PNG/JPEG picture file to a Webp file, use the cwebp utility. On this instance, the -q flag is used to outline the picture high quality:

$ cwebp -q 90 Selection_603.png -o Selection_603.webp
Convert PNG or JPEG to WebP in Linux
Convert PNG or JPEG to WebP in Linux

Listed here are extra examples:

$ cwebp -q 60 -lossless picture.png -o image_lossless.webp
$ cwebp -q 80 image_with_alpha.png -o image_with_alpha.webp
$ cwebp -sns 80 -f 50 -size 60000 picture.png -o picture.webp
$ cwebp -o picture.webp --image.png

For extra data, examine the person web page for cwebp:

$ man cwebp

Convert WebP Photographs to PNG or JPEG Utilizing XnConvert

XnConvert is a quick, highly effective, and free multi-platform batch picture converter that runs on Linux, Home windows, and MacOS. It helps over 80 actions for managing photos in your laptop resembling resizing, cropping, colour changes, filtering, and rather more.

It helps the commonest image and graphics codecs resembling JPEG, PNG, WebP, GIF, OpenEXR, digital camera RAW, HEIC, PDF, DNG, CR2, and rather more.

To put in it, obtain the .deb bundle from the mission’s official web site and set up the XnConvert DEB bundle as proven:

$ sudo dpkg -i ~/Downloads/XnConvert-linux-x64.deb

After efficiently putting in it as proven within the earlier screenshot, seek for it within the system menu, and open it. Click on on Add Recordsdata button to load a picture file into the applying for processing.

Open XnConvert Tool
Open XnConvert Device

Subsequent, click on on the Output tab, below Format, and choose the brand new format you want to convert the present picture format to, from the drop-down menu. After which click on Convert.

On this instance, we’re changing a .png picture file to a .webp format.

XnConvert - Convert PNG to WebP Format
XnConvert – Convert PNG to WebP Format

That’s all! Tell us your ideas about this information or webp picture format by way of the remark part under.

If You Recognize What We Do Right here On TecMint, You Ought to Think about:

TecMint is the quickest rising and most trusted neighborhood web site for any sort of Linux Articles, Guides and Books on the internet. Thousands and thousands of individuals go to TecMint! to look or browse the hundreds of revealed articles accessible FREELY to all.

In case you like what you’re studying, please take into account shopping for us a espresso ( or 2 ) as a token of appreciation.

Support Us

We’re grateful in your by no means ending help.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments