[Feature Request] Support for .avif image files
All my comics are formatted as AVIF inside a CBZ with metadata. Currently, I have to extract the files and convert them to jpg using another program, before recompressing them back into a CBZ. Could you add support for AVIF conversion inside the program please? Alternatively if EPUB natively supports AVIF then no conversion is needed, just a way for the program to recognize it.
I can provide a sample file if needed.
You don't need to recompress to cbz. Kcc accepts a folder of images with the comic info.xml inside.
This will have to wait until pillow adds avif support.
Thanks for tell me, that saves the hassle of recompressing everything.
Could this unofficial plugin be used until its officially supported? https://github.com/fdintino/pillow-avif-plugin
pillow 11.2.1 has been add avif support. https://pillow.readthedocs.io/en/stable/releasenotes/11.2.1.html#reading-and-writing-avif-images
Might be as easy as changing this line:
https://github.com/ciromattia/kcc/blob/cb0520dcab24a88a8311872b6b5cf5d08442c815/kindlecomicconverter/shared.py#L57
@PoisonPyte @yaqinking
Tried use pillow 11.2.1 but raised exception, it seems not ready for avif support.
Sounds like you need to
Pillow can now read and write AVIF images when built from source with libavif 1.0.0 or later.
Looks like it's ready in 11.3.0 https://pillow.readthedocs.io/en/stable/releasenotes/11.3.0.html#avif-support-in-wheels
@PoisonPyte @yaqinking I've added AVIF input support in 8.0.3
If you feel generous, feel free to donate on ko-fi! https://ko-fi.com/eink_dude