diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2021-06-06 23:27:46 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2021-06-06 23:27:46 +0300 |
commit | 238f20f82d485dafa16904c5bd1b07c8034ddacd (patch) | |
tree | 5e44429da45214db38daae66434a42a3b862c51e | |
parent | 1aa545e1d8aa103c62709f30a1984251d7308c2c (diff) | |
download | shared-mime-info-238f20f82d485dafa16904c5bd1b07c8034ddacd.tar.gz |
image/jxl: new type
Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/159
-rw-r--r-- | data/freedesktop.org.xml.in | 8 | ||||
-rw-r--r-- | tests/mime-detection/test-with-container.jxl | bin | 0 -> 128 bytes | |||
-rw-r--r-- | tests/mime-detection/test-without-container.jxl | bin | 0 -> 218 bytes |
3 files changed, 8 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index 93bef378..27a98c28 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -4788,6 +4788,14 @@ command to generate the output files. <glob pattern="*.mj2"/> <glob pattern="*.mjp2"/> </mime-type> + <mime-type type="image/jxl"> + <comment>JPEG XL image</comment> + <magic> + <match type="string" offset="0" value="\xFF\x0A"/> + <match type="string" offset="0" value="\0\0\0\x0CJXL \x0D\x0A\x87\x0A"/> + </magic> + <glob pattern="*.jxl"/> + </mime-type> <mime-type type="image/openraster"> <comment>OpenRaster image</comment> <sub-class-of type="application/zip"/> diff --git a/tests/mime-detection/test-with-container.jxl b/tests/mime-detection/test-with-container.jxl Binary files differnew file mode 100644 index 00000000..56a011b8 --- /dev/null +++ b/tests/mime-detection/test-with-container.jxl diff --git a/tests/mime-detection/test-without-container.jxl b/tests/mime-detection/test-without-container.jxl Binary files differnew file mode 100644 index 00000000..0fa25782 --- /dev/null +++ b/tests/mime-detection/test-without-container.jxl |