summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-04-29 18:16:44 +0100
committerBastien Nocera <hadess@hadess.net>2012-04-29 18:16:44 +0100
commitafbdfb40a3ff8c255e5d3dab8840cc478a007d45 (patch)
treed3aaeceabd57ab856af01200793157bafc53e0dc
parentac9ef2324158ceb300cb5d2b9967ec3e750694a1 (diff)
downloadshared-mime-info-afbdfb40a3ff8c255e5d3dab8840cc478a007d45.tar.gz
Add separate mime-type for Apple broken PNGs
-rw-r--r--freedesktop.org.xml.in9
-rw-r--r--tests/list1
-rw-r--r--tests/test-apple.pngbin0 -> 10872 bytes
3 files changed, 10 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index add79503..3e81fe2b 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -4057,6 +4057,15 @@ command to generate the output files.
</magic>
<glob pattern="*.png"/>
</mime-type>
+ <mime-type type="image/x-apple-ios-png">
+ <_comment>Apple optimised PNG image</_comment>
+ <magic priority="80">
+ <match type="string" value="\x89PNG" offset="0">
+ <match value="CgBI" type="string" offset="12"/>
+ </match>
+ </magic>
+ <glob pattern="*.png"/>
+ </mime-type>
<mime-type type="image/rle">
<_comment>Run Length Encoded bitmap image</_comment>
<glob pattern="*.rle"/>
diff --git a/tests/list b/tests/list
index a64343c2..618b7a3a 100644
--- a/tests/list
+++ b/tests/list
@@ -29,6 +29,7 @@ test.pcx image/x-pcx
test.pgm image/x-portable-graymap
test.pix image/x-pix xxx
test.png image/png
+test-apple.png image/x-apple-ios-png x
test.ppm image/x-portable-pixmap
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=19811
test2.ppm image/x-portable-pixmap
diff --git a/tests/test-apple.png b/tests/test-apple.png
new file mode 100644
index 00000000..bd253247
--- /dev/null
+++ b/tests/test-apple.png
Binary files differ