heif: declare read support for HIF

image/heif MIME type uses following three file extensions:
heif, heic, hif.

Adding HIF into plugin's list.
This commit is contained in:
Daniel Novomeský
2026-07-20 18:23:20 +02:00
parent c21b50d699
commit 7ec1170c86
2 changed files with 22 additions and 2 deletions

View File

@@ -1465,6 +1465,14 @@ QImageIOPlugin::Capabilities HEIFPlugin::capabilities(QIODevice *device, const Q
return format_cap;
}
if (format == "hif") {
Capabilities format_cap;
if (HEIFHandler::isHeifDecoderAvailable()) {
format_cap |= CanRead;
}
return format_cap;
}
if (format == "hej2") {
Capabilities format_cap;
if (HEIFHandler::isHej2DecoderAvailable()) {

View File

@@ -1,4 +1,16 @@
{
"Keys": [ "heif", "heic", "hej2", "avci" ],
"MimeTypes": [ "image/heif", "image/heif", "image/hej2k", "image/avci" ]
"Keys": [
"heif",
"heic",
"hif",
"hej2",
"avci"
],
"MimeTypes": [
"image/heif",
"image/heif",
"image/heif",
"image/hej2k",
"image/avci"
]
}