mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
91 lines
3.6 KiB
Markdown
91 lines
3.6 KiB
Markdown
|
[#]: 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 won’t 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, what’s the solution? Can you not view AVIF images on Linux at all?
|
|||
|
|
|||
|
Nope, that’s 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]
|
|||
|
|
|||
|
That’s 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
|