Home > Operation and Maintenance > Nginx > How to view AVIF images in Ubuntu and other Linux distributions

How to view AVIF images in Ubuntu and other Linux distributions

王林
Release: 2023-06-17 08:27:02
forward
1857 people have browsed it

如何在 Ubuntu 和其他 Linux 发行版中查看 AVIF 图像

In terms of quality, PNGs are the best, but they are bulky and therefore not suitable for use on websites.

JPEG reduces file size but significantly reduces image quality.

WebP is a relatively new format that produces images of smaller size and better quality.

Now, AVIF is a new file format that can compress images without sacrificing quality. For the same image quality, they are smaller than WebP.

Recently Linux has begun to provide WebP support. However, many distributions do not support the AVIF image format by default.

If you download an image in AVIF format from the web, it will not display thumbnails.

如何在 Ubuntu 和其他 Linux 发行版中查看 AVIF 图像

avif image no thumbnail

If you try to open it using the default image viewer, it will most likely say "Not recognized Image file format" error.

如何在 Ubuntu 和其他 Linux 发行版中查看 AVIF 图像

avif images dont open linux

So, what is the solution? Can't see AVIF images at all on Linux?

No, that is not the case. With Linux, there's always a workaround.

Viewing AVIF image files in Linux

There is a convenient image viewer called gThumb that can be used to open AVIF images on Linux.

It should be available in the repositories of most, if not all, Linux distributions.

On Ubuntu and Debian-based distributions, use the following command to install gThumb.

sudo apt install gthumb
Copy after login

如何在 Ubuntu 和其他 Linux 发行版中查看 AVIF 图像

install gthumb ubuntu

After the installation is complete, you can select an AVIF image, right-click on it, and Select the "Open With" option. Here, you can set gThumb as the default opening tool for AVIF images and open the file using it.

如何在 Ubuntu 和其他 Linux 发行版中查看 AVIF 图像

make gthumb default for avi

gThumb Displays all images in the same folder in thumbnail format under the open image .

如何在 Ubuntu 和其他 Linux 发行版中查看 AVIF 图像

avif image opened with gthumb in linux

After opening AVIF images with gThumb, they should also appear as thumbnails.

如何在 Ubuntu 和其他 Linux 发行版中查看 AVIF 图像

avif image thumbnail

That’s it. You can now enjoy AVIF images on your Linux desktop.

Summary

gThumb is an extremely versatile and powerful application. This sentence can be rewritten as: Why isn't this the default image viewer in GNOME or other desktop environments and distributions? .

Regarding the default AVIF support in Linux, it will be added sooner or later. Currently, gThumb does the job.

The above is the detailed content of How to view AVIF images in Ubuntu and other Linux distributions. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:51cto.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template