Merge pull request #29544 from geekpi/translating

translated
This commit is contained in:
geekpi 2023-06-14 08:56:31 +08:00 committed by GitHub
commit af9055bec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 90 additions and 90 deletions

View File

@ -1,90 +0,0 @@
[#]: 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: "geekpi"
[#]: 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

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: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
如何在 Ubuntu 和其他 Linux 发行版中查看 AVIF 图像
======
就质量而言PNG 是最好的,但它们体积庞大,因此不适合用于网站。
JPEG 会减小文件大小,但会显着降低图像质量。
WebP 是一种相对较新的格式,可以生成尺寸更小、质量更好的图像。
现在,[AVIF][1] 是一种新的文件格式,可以在不牺牲质量的情况下压缩图像。对于相同的图像质量,它们比 WebP 更小。
最近 [Linux 已开始提供 WebP 支持][2]。但是,许多发行版默认不支持 AVIF 图像格式。
如果你从网络上下载 AVIF 格式的图像,它不会显示缩略图。
![avif image no thumbnail][3]
如果你尝试使用默认图像查看器打开它,它很可能会显示“无法识别的图像文件格式”错误。
![avif images dont open linux][4]
那么,解决方案是什么? 在 Linux 上根本看不到 AVIF 图像吗?
不,事实并非如此。对于 Linux总有一种解决方法。
### 在 Linux 中查看 AVIF 图像文件
有一个名为 gThumb 的便捷[图像查看器][5],可用于在 Linux 上打开 AVIF 图像。
如果不是全部的话,它应该在大多数 Linux 发行版的仓库中可用。
在 Ubuntu 和基于 Debian 的发行版上,使用以下命令安装 gThumb。
```
sudo apt install gthumb
```
![install gthumb ubuntu][6]
安装后,选择一张 AVIF 图像,右键单击它并选择“打开方式”选项。在这里,选择 gThumb将其设为 AVIF 图像的默认值并打开它。
![make gthumb default for avif][7]
gThumb 在打开的图像下以缩略图格式显示同一文件夹中的所有图像。
![avif image opened with gthumb in linux][8]
使用 gThumb 打开 AVIF 图像后,它们也应该以缩略图显示。
![avif image thumbnail][9]
就是这样。你现在可以在 Linux 桌面上欣赏 AVIF 图像。
### 总结
gThumb 是一个用途极为广泛且功能强大的应用。这让我想知道为什么它不被用作 GNOME 或其他桌面环境和发行版中的默认图像查看器。
关于 Linux 中默认的 AVIF 支持迟早会添加。目前gThumb 完成了这项工作。
--------------------------------------------------------------------------------
via: https://itsfoss.com/view-avif-images-linux/
作者:[Abhishek Prakash][a]
选题:[lkxed][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者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