summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-09-30 12:03:46 +0200
committerBastien Nocera <hadess@hadess.net>2013-09-30 12:07:32 +0200
commit9d8849fa72720b458171acbcbcc13696f983d134 (patch)
tree57fae75f0be8e5a208ab23ec96040cc87ed13af0
parent99446c516c178a888ac9550c8eca241c0dac2ae2 (diff)
Correct JPEG2000 definition
*.jpc and *.j2k relate to JPEG 2000 codestreams, not to JPEG 2000 images, so remove those globs. Remove the jP magic, as it creates false positives (and add a test for that). Also add the jp2 string magic. With help from Steve Fosdick <other@fosdick.me.uk> https://bugs.freedesktop.org/show_bug.cgi?id=11942
-rw-r--r--freedesktop.org.xml.in7
-rw-r--r--tests/img_5304.jpgbin0 -> 102400 bytes
-rw-r--r--tests/list3
-rw-r--r--tests/test.jpcbin1089 -> 0 bytes
4 files changed, 6 insertions, 4 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index ab1df47..1eadc68 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -3969,16 +3969,17 @@ command to generate the output files.
<_comment>JPEG-2000 image</_comment>
<alias type="image/jpeg2000"/>
<alias type="image/jpx"/>
+ <alias type="image/jpeg2000-image"/>
+ <alias type="image/x-jpeg2000-image"/>
<magic priority="50">
- <match value="jP" type="string" offset="4" />
<match value="\xFF\x4F\xFF\x51\x00" type="string" offset="0" />
<match type="big32" value="0x0c6a5020" offset="3"/>
+ <match type="string" value="jp2" offset="20"/>
</magic>
<glob pattern="*.jp2"/>
- <glob pattern="*.jpc"/>
<glob pattern="*.jpx"/>
- <glob pattern="*.j2k"/>
<glob pattern="*.jpf"/>
+
</mime-type>
<mime-type type="image/openraster">
<_comment>OpenRaster archiving image</_comment>
diff --git a/tests/img_5304.jpg b/tests/img_5304.jpg
new file mode 100644
index 0000000..db855f5
--- /dev/null
+++ b/tests/img_5304.jpg
Binary files differ
diff --git a/tests/list b/tests/list
index 28179d7..9f15364 100644
--- a/tests/list
+++ b/tests/list
@@ -25,7 +25,8 @@ test.ilbm image/x-ilbm
test.im1 image/x-sun-raster x
test.jp2 image/jp2
test.jpg image/jpeg
-test.jpc image/jp2
+# Possible false positive for a JPEG 2000 image
+img_5304.jpg image/jpeg
# From https://bugzilla.freedesktop.org/show_bug.cgi?id=55339
test.mng video/x-mng
test.pat image/x-pat xxx
diff --git a/tests/test.jpc b/tests/test.jpc
deleted file mode 100644
index c4300b5..0000000
--- a/tests/test.jpc
+++ /dev/null
Binary files differ