Merge pull request #27772 from lkxed/20221031-2-How-to-View-AVIF-Images-in-Ubuntu-and-Other-Linux-Distributions

[手动选题][tech]: 20221031.2 ️ How to View AVIF Images in Ubuntu and Other Linux Distributions.md
This commit is contained in:
Xingyu.Wang 2022-11-01 05:06:37 +08:00 committed by GitHub
commit 3ced98bc19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,90 @@
[#]: subject: "How to View AVIF Images in Ubuntu and Other Linux Distributions"
[#]: via: "https://itsfoss.com/view-avif-images-linux/"
[#]: author: "Abhishek Prakash https://itsfoss.com/"
[#]: collector: "lkxed"
[#]: translator: " "
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
How to View AVIF Images in Ubuntu and Other Linux Distributions
======
PNGs are the best when it comes to quality but they are huge in size and hence not ideal for websites.
JPEGs reduce the file size but they reduce the quality of the images significantly.
WebP is a relatively newer format that produces better-quality images with significantly smaller sizes.
Now, [AVIF][1] is a new file format that compresses images without sacrificing quality. They are smaller than WebP for the same image quality.
[Linux has started providing WebP support][2] recently. However, AVIF image format is not yet supported by default in many distributions.
If you download an image in AVIF format from the web, it wont display the thumbnail.
![avif image no thumbnail][3]
And if you try to open it with the default image viewer, it is likely to show unrecognized image file format error.
![avif images dont open linux][4]
So, whats the solution? Can you not view AVIF images on Linux at all?
Nope, thats not the case. There is always a workaround when it comes to Linux.
### Viewing AVIF image files in Linux
There is a handy [image viewer][5] called gThumb that can be used for opening AVIF images on Linux.
It should be available in the repositories of most Linux distributions, if not all.
On Ubuntu and Debian-based distributions, use the following command to install gThumb.
```
sudo apt install gthumb
```
![install gthumb ubuntu][6]
Once installed, select an AVIF image, right-click on it and select “Open With” option. Here, select gThumb, make it default for AVIF images and open it.
![make gthumb default for avif][7]
gThumb shows all the images from the same folder in thumbnail format under the opened image.
![avif image opened with gthumb in linux][8]
Once you open AVIF images with gThumb, they should also be displayed with thumbnails.
![avif image thumbnail][9]
Thats it. You can now enjoy AVIF images on your Linux desktop.
### Conclusion
gThumb is an extremely versatile and capable application. It makes me wonder why it is not used as the default image viewer in GNOME or other desktop environments and distributions.
And about default AVIF support in Linux, sooner or later it will be added. For now, gThumb does the job.
--------------------------------------------------------------------------------
via: https://itsfoss.com/view-avif-images-linux/
作者:[Abhishek Prakash][a]
选题:[lkxed][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/
[b]: https://github.com/lkxed
[1]: https://aomediacodec.github.io/av1-avif/
[2]: https://itsfoss.com/webp-ubuntu-linux/
[3]: https://itsfoss.com/wp-content/uploads/2022/10/avif-image-no-thumbnail.png
[4]: https://itsfoss.com/wp-content/uploads/2022/10/avif-images-dont-open-linux.png
[5]: https://itsfoss.com/image-viewers-linux/
[6]: https://itsfoss.com/wp-content/uploads/2022/10/install-gthumb-ubuntu.png
[7]: https://itsfoss.com/wp-content/uploads/2022/10/make-gthumb-default-for-avif.png
[8]: https://itsfoss.com/wp-content/uploads/2022/10/avif-image-opened-with-gthumb-in-linux.webp
[9]: https://itsfoss.com/wp-content/uploads/2022/10/avif-image-thumbnail.png