YACReader / yacreader

This repo contains the code of YACReader's desktop version.
https://www.yacreader.com
GNU General Public License v3.0
919 stars 94 forks source link

[Enhancement] Add support for .avif images in cbr/cbz archives #425

Open superuser-miguel opened 4 months ago

superuser-miguel commented 4 months ago

AVIF files are supported in browsers, desktop etc. Being open, royalty free format . It has great compression of .jpg | .png files. I have been moving a collection over to the format and packing them in .cbz files for testing. On Linux, Gnome's Document reader evince already supports .cbz files with .avif images and thumbnails can already be generated for them. gThumb also supports it OOTB.

Seeing as this will be popular going forward, because of how av1 will be implemented by browsers and streeaming platforms, support for this can be drop in since the libraries are readily available.

selmf commented 4 months ago

YACReader uses Qt's QImage, so any format supported by that can be used by YACReader. You can add avif support to your installation of YACReader by installing qt-avif-image-plugin.

superuser-miguel commented 4 months ago

I will give it a try !

superuser-miguel commented 4 months ago

The Fedora package has not been maintained since Fedora 33. . .

https://koji.fedoraproject.org/koji/packageinfo?packageID=32052

I would have to contact the developer on this. Thanks for the bit.


In Fedora, it appears to be bundled with kf5-kimageformats. I will test further.

selmf commented 3 months ago

Yes I think installing kimageformats, either for Qt5 or Qt6 depending on how YACReader is built should do the trick.

superuser-miguel commented 1 month ago

That actually did not work, and Fedora packages avif support somewhere else. I do have Document Reader working just fine and have been using it for reading my newly converted files. I guess the flatpak would need to be packaged with it ?

selmf commented 1 month ago

Hmm, that is strange. Kimageformats should be the best way to get extra image format support for all Qt applications.

I did a quick check and it appears that it is installed in the newest edition of the KDE flatpak runtime. The YACReader flatpak is currently still on an older runtime, so updating this would probably make avif and other images available.