yacreader icon indicating copy to clipboard operation
yacreader copied to clipboard

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

Open superuser-miguel opened this issue 1 year ago • 7 comments

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.

superuser-miguel avatar Feb 23 '24 17:02 superuser-miguel

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.

selmf avatar Feb 23 '24 17:02 selmf

I will give it a try !

superuser-miguel avatar Feb 23 '24 21:02 superuser-miguel

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.

superuser-miguel avatar Mar 01 '24 19:03 superuser-miguel

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

selmf avatar Mar 07 '24 06:03 selmf

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 ?

superuser-miguel avatar May 09 '24 16:05 superuser-miguel

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.

selmf avatar May 10 '24 10:05 selmf

Bumping here, I'd love to see more AVIF (& JPEG XL) support.

I specifically docker yacreader/yacreaderlibraryserver:9.15.0 but it doesn't seem to recognize CBZ archives with just AVIF images. (I also have the lates iOS app for reading which might work for AVIF/JXL, but I only load comics from my docker server so 🤷)

nickv2002 avatar Oct 02 '25 22:10 nickv2002