summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMirco Miranda <mircomir@gmail.com>2024-10-31 20:07:10 +0000
committerDavid Faure <faure@kde.org>2024-10-31 20:07:10 +0000
commitce1832f14b0bdd72575de96f1221a41c2420e5d4 (patch)
tree4847242e05fcbd1520c956aa65495924be71c978
parent815b520eb01992a05d41a5434f1227a8be101e15 (diff)
Add PFM, PXR and SCT image formatsHEADmaster
-rw-r--r--data/freedesktop.org.xml.in34
-rw-r--r--tests/mime-detection/list4
-rw-r--r--tests/mime-detection/testcard_gray.pfmbin0 -> 16401 bytes
-rw-r--r--tests/mime-detection/testcard_gray.sctbin0 -> 6144 bytes
-rw-r--r--tests/mime-detection/testcard_rgb.pfmbin0 -> 49169 bytes
-rw-r--r--tests/mime-detection/testcard_rgb.pxrbin0 -> 13312 bytes
6 files changed, 35 insertions, 3 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index f6e3b65..6c6b1a1 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -71,7 +71,7 @@ see the file named COPYING.
The latest version is available from:
- http://www.freedesktop.org/wiki/Software/shared-mime-info/
+ http://www.freedesktop.org/wiki/Software/shared-mime-info/
To extend this database, users and applications should create additional
XML files in the 'packages' directory and run the update-mime-database
@@ -1618,8 +1618,8 @@ command to generate the output files.
<expanded-acronym>PCAP Next Generation</expanded-acronym>
<magic>
<match type="host32" value="0x0a0d0d0a" offset="0">
- <match type="host32" value="0x1a2b3c4d" offset="8"/>
- <match type="host32" value="0x4d3c2b1a" offset="8"/>
+ <match type="host32" value="0x1a2b3c4d" offset="8"/>
+ <match type="host32" value="0x4d3c2b1a" offset="8"/>
</match>
</magic>
<glob pattern="*.pcapng"/>
@@ -8921,4 +8921,32 @@ command to generate the output files.
<sub-class-of type="application/xml"/>
<glob pattern="*.tsx"/>
</mime-type>
+
+ <mime-type type="image/x-sct">
+ <comment>Scitex CT</comment>
+ <acronym>CT</acronym>
+ <expanded-acronym>Continuous Tone</expanded-acronym>
+ <glob pattern="*.sct"/>
+ <magic>
+ <match type="string" value="CT" offset="80"/>
+ </magic>
+ </mime-type>
+
+ <mime-type type="image/x-pxr">
+ <comment>Pixar raster</comment>
+ <glob pattern="*.pxr"/>
+ <magic>
+ <match type="string" value="\x80\xE8\x00\x00" offset="0"/>
+ </magic>
+ </mime-type>
+
+ <mime-type type="image/x-pfm">
+ <comment>Portable FloatMap</comment>
+ <glob pattern="*.pfm"/>
+ <magic>
+ <match type="string" value="PF\n" offset="0"/>
+ <match type="string" value="Pf\n" offset="0"/>
+ </magic>
+ </mime-type>
+
</mime-info>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index e720da1..832e700 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -13,6 +13,10 @@ test.bmp image/bmp
test.cel image/x-kiss-cel
test.dcm application/dicom
test.eps image/x-eps
+testcard_gray.pfm image/x-pfm
+testcard_rgb.pfm image/x-pfm
+testcard_rgb.pxr image/x-pxr
+testcard_gray.sct image/x-sct
# https://bugs.freedesktop.org/show_bug.cgi?id=55264
Oriental_tattoo_by_daftpunk22.eps image/x-eps
GammaChart.exr image/x-exr
diff --git a/tests/mime-detection/testcard_gray.pfm b/tests/mime-detection/testcard_gray.pfm
new file mode 100644
index 0000000..9285802
--- /dev/null
+++ b/tests/mime-detection/testcard_gray.pfm
Binary files differ
diff --git a/tests/mime-detection/testcard_gray.sct b/tests/mime-detection/testcard_gray.sct
new file mode 100644
index 0000000..0469f7d
--- /dev/null
+++ b/tests/mime-detection/testcard_gray.sct
Binary files differ
diff --git a/tests/mime-detection/testcard_rgb.pfm b/tests/mime-detection/testcard_rgb.pfm
new file mode 100644
index 0000000..5d62d94
--- /dev/null
+++ b/tests/mime-detection/testcard_rgb.pfm
Binary files differ
diff --git a/tests/mime-detection/testcard_rgb.pxr b/tests/mime-detection/testcard_rgb.pxr
new file mode 100644
index 0000000..2dcea80
--- /dev/null
+++ b/tests/mime-detection/testcard_rgb.pxr
Binary files differ