summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Novomeský <dnovomesky@gmail.com>2023-12-13 11:03:19 +0100
committerDaniel Novomeský <dnovomesky@gmail.com>2023-12-13 12:09:23 +0100
commite9a79ba10d037c6857706b298c013d05672994b2 (patch)
tree3353eac93302edc8a39fdf57b64a23f019bc543c
parentb87696990a71c8534a1476ab1e3f63c11f8feea5 (diff)
Add mimetype for HEJ2 format
-rw-r--r--data/freedesktop.org.xml.in7
-rw-r--r--tests/mime-detection/list4
-rw-r--r--tests/mime-detection/test.hej2bin0 -> 11715 bytes
3 files changed, 11 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 6df3729..86500bd 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -5185,6 +5185,13 @@ command to generate the output files.
<alias type="image/heic-sequence"/>
<alias type="image/heif-sequence"/>
</mime-type>
+ <mime-type type="image/hej2k">
+ <comment>JPEG 2000 image encapsulated in HEIF</comment>
+ <magic>
+ <match type="string" value="ftypj2ki" offset="4"/>
+ </magic>
+ <glob pattern="*.hej2"/>
+ </mime-type>
<mime-type type="image/ief">
<comment>IEF image</comment>
<glob pattern="*.ief"/>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index cc12a8b..5338ded 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -987,6 +987,10 @@ test.avifs image/avif
rgb.qoi image/qoi
rgba.qoi image/qoi
+# HEJ2 - Encapsulation of JPEG 2000 images into ISO/IEC 23008-12
+# https://www.itu.int/rec/T-REC-T.815-202106-I/en
+test.hej2 image/hej2k
+
# LMDB (#168), file generated by baloo's basicindexingjobtest (LGPL)
data.mdb application/x-lmdb x
# MS Access DB, copied from Qt5's qtbase/tests/auto/sql/kernel/qsqldatabase/testdata/qtest.mdb (LGPL)
diff --git a/tests/mime-detection/test.hej2 b/tests/mime-detection/test.hej2
new file mode 100644
index 0000000..7d8ec91
--- /dev/null
+++ b/tests/mime-detection/test.hej2
Binary files differ