diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2021-10-09 10:36:48 +0300 |
---|---|---|
committer | David Faure <faure@kde.org> | 2021-12-12 18:45:55 +0000 |
commit | d0bde6aea18d204f9110783b86ed0220843b1ef8 (patch) | |
tree | 01f3fd555ba59fd2be3882277ad3188ec9828579 | |
parent | 755ce69b94e900f961af4c0a8c3869456bf9c0cd (diff) | |
download | shared-mime-info-d0bde6aea18d204f9110783b86ed0220843b1ef8.tar.gz |
image/heif: add magics
https://nokiatech.github.io/heif/technical.html
-rw-r--r-- | data/freedesktop.org.xml.in | 8 | ||||
-rw-r--r-- | tests/mime-detection/list | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index 390e03ae..183bc184 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -4775,6 +4775,14 @@ command to generate the output files. <comment>HEIF image</comment> <acronym>HEIF</acronym> <expanded-acronym>High Efficiency Image File</expanded-acronym> + <magic priority="40"><!-- less than AVIF due to ftypmif1 --> + <match type="string" value="ftypmif1" offset="4"/> + <match type="string" value="ftypmsf1" offset="4"/> + <match type="string" value="ftypheic" offset="4"/> + <match type="string" value="ftypheix" offset="4"/> + <match type="string" value="ftyphevc" offset="4"/> + <match type="string" value="ftyphevx" offset="4"/> + </magic> <glob pattern="*.heic"/> <glob pattern="*.heif"/> <alias type="image/heic"/> diff --git a/tests/mime-detection/list b/tests/mime-detection/list index e3f9a84b..ba77bff4 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -19,8 +19,8 @@ GammaChart.exr image/x-exr test.fit image/fits x test.fli video/x-flic ox test.gif image/gif -example.heic image/heif ox -example.heif image/heif ox +example.heic image/heif +example.heif image/heif test.ico image/vnd.microsoft.icon # From https://bugs.freedesktop.org/show_bug.cgi?id=20070#c3 test.ilbm image/x-ilbm |