quickviewer icon indicating copy to clipboard operation
quickviewer copied to clipboard

avif image file support

Open gitoss opened this issue 5 years ago • 6 comments

The avif is the still image format of av1, basically a modern webp (which is based on vp8). There is native support in recent Windows versions, but not in 1809 Enterprise builds or other older LTSC/LTSB versions.

https://en.wikipedia.org/wiki/AV1#AV1_Image_File_Format_(AVIF)

=> Since av1 seems to be the thing and even M$ supports it, native support in qucikviewer with libavif would be very nice.

Specs: https://aomediacodec.github.io/av1-avif/

Lib: https://github.com/AOMediaCodec/libavif

Samples: http://download.opencontent.netflix.com/?prefix=AV1/Chimera/AVIF/ https://github.com/AOMediaCodec/av1-avif/tree/master/testFiles/Microsoft

gitoss avatar Dec 28 '19 12:12 gitoss

libheif supportes avif, too, next to the original h265/heic. It might add other codecs inside the heif container like h266/vvc: https://github.com/strukturag/libheif

Since Chrome, Firefox and Android now support .avif, it seems to be here to stay.

gitoss avatar Jul 20 '20 22:07 gitoss

It seems I didn't notice your last issue. I'm sorry I didn't write a reply. If you have the skills to build programs, you can build these libraries as Qt's imageformats plugin. If you add the plugin to QuickViewer, QuickViewer will be able to display the image. If other Qt apps support it, it's likely they have prebuilt plugins. If you can find it, just copy it.

kanryu avatar Jul 21 '20 00:07 kanryu

quickviewer_qt-avif-image-plugin I compiled qavif.dll against old Qt 5.12 and added it to QuickViewer-portable-1.1.8-x64\imageformats folder. @kanryu If you rebuild your app against Qt 5.14.2, then you can simply download qavif.dll from https://github.com/novomesk/qt-avif-image-plugin/releases

novomesk avatar Jul 22 '20 12:07 novomesk

@gitoss Thank you for contacting people on other projects. Thanks to you I knew I had an implementation of avif.

@novomesk Thanks for providing the Qt implementation of avif. Your implementation will be bundled with the next release of QuickViewer. We thank you for your cooperation.

kanryu avatar Jul 23 '20 01:07 kanryu

@kanryu If you rebuild your app against Qt 5.14.2, then you can simply download qavif.dll from https://github.com/novomesk/qt-avif-image-plugin/releases

Dropping novomesk' dll into the current 1.1.8 x64 doesn't work for me - the .avif is neither opened nor listed. I hope kanryu will release a pre-packaged 1.1.9 update soon.

gitoss avatar Aug 04 '20 15:08 gitoss

@gitoss The DLL was built using Qt 5.14 but the quick viewer using Qt 5.12. This combination cannot work. When you build my DLL with old Qt 5.12 and it will work together.

novomesk avatar Aug 05 '20 09:08 novomesk