eXeC64 / imv

Image viewer for X11/Wayland
MIT License
800 stars 57 forks source link

Support AVIF image format #242

Open Seirdy opened 4 years ago

Seirdy commented 4 years ago

Something like libavif with dav1d could give imv support for AVIF images, the spiritual successor to WebP. It supports lossless and lossy compression based on the AV1 video codec.

novomesk commented 4 years ago

imv optionally uses FreeImage backend. I made a plug-in for FreeImage with AVIF support: https://sourceforge.net/p/freeimage/patches/137/ libavif is quite easy to use anyway but you can choose which way is more convenient to implement.

I wanted to suggest adding AVIF support too.

Seirdy commented 3 years ago

imv can link against libheif now. On some distributions, libheif can use libaom and rav1e to handle avif images.

If you build imv on Fedora 33 against libheif, for instance, imv can open avif images.

In other words, imv just got avif support for free. This isn't perfect; I don't think libheif links against libdav1d (the fastest AV1 decoder), but rav1e and libaom are generally fast enough at decoding a single image.

Logarithmus commented 3 years ago

imv can link against libheif now. On some distributions, libheif can use libaom and rav1e to handle avif images.

If you build imv on Fedora 33 against libheif, for instance, imv can open avif images.

In other words, imv just got avif support for free. This isn't perfect; I don't think libheif links against libdav1d (the fastest AV1 decoder), but rav1e and libaom are generally fast enough at decoding a single image.

rav1e is an encoder, not a decoder.