-
Task
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.10.0
-
None
Qt 6.10 doesn't support AVIF images out of the box.
QList<QByteArray> readFormats = QImageReader::supportedImageFormats();
qDebug() << "supportedImageFormats:" << readFormats;
supportedImageFormats: QList("bmp", "cur", "gif", "icns", "ico", "jfif", "jpeg", "jpg", "pbm", "pgm", "png", "ppm", "svg", "svgz", "tga", "tif", "tiff", "wbmp", "webp", "xbm", "xpm")
AVIF is a modern image format with way better compression than JPEG, supports 10/12-bit depth, transparency. Would be nice to have support for it.
There's a Qt plugin that already handles this: https://github.com/novomesk/qt-avif-image-plugin