imv icon indicating copy to clipboard operation
imv copied to clipboard

Support AVIF image format

Open Seirdy opened this issue 4 years ago • 3 comments

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.

Seirdy avatar Apr 15 '20 18:04 Seirdy

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.

novomesk avatar Apr 17 '20 19:04 novomesk

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.

Seirdy avatar Apr 13 '21 02:04 Seirdy

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.

Logarithmus avatar Apr 13 '21 14:04 Logarithmus