summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Murzov <e-mail@date.by>2013-03-31 02:54:27 +0400
committerBastien Nocera <hadess@hadess.net>2014-02-07 16:56:48 +0100
commit7612a110f9a42db4730a8c6d1fff6d78c899d53d (patch)
treee6d49e0b1a03791eb785e509c82d9b16b5ab5db2
parentb067788e51cd5498944e85f707300fee9f2d1b32 (diff)
Add image/x-webp mime-type
Magic information from: https://developers.google.com/speed/webp/docs/riff_container#webp-file-header https://bugs.freedesktop.org/show_bug.cgi?id=41155
-rw-r--r--freedesktop.org.xml.in10
-rw-r--r--tests/list1
-rw-r--r--tests/test.webpbin0 -> 244 bytes
3 files changed, 11 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index e5e83d1..7cc6bf5 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -4342,6 +4342,16 @@ command to generate the output files.
<match type="string" value="\x45\x50\x2A\x00" offset="0"/>
</magic>
</mime-type>
+ <mime-type type="image/x-webp">
+ <_comment>WebP image</_comment>
+ <magic priority="50">
+ <match type="string" value="RIFF" offset="0">
+ <match type="string" value="WEBP" offset="8"/>
+ </match>
+ </magic>
+ <alias type="image/webp"/>
+ <glob pattern="*.webp"/>
+ </mime-type>
<mime-type type="image/x-3ds">
<_comment>3D Studio image</_comment>
<glob pattern="*.3ds"/>
diff --git a/tests/list b/tests/list
index 8c26051..a7fafb4 100644
--- a/tests/list
+++ b/tests/list
@@ -47,6 +47,7 @@ test.tga image/x-tga
# Uncompressed TGA
test2.tga image/x-tga
test.tif image/tiff
+test.webp image/x-webp
test.xbm image/x-xbitmap ox
test.xcf image/x-xcf
# https://bugs.freedesktop.org/show_bug.cgi?id=55263
diff --git a/tests/test.webp b/tests/test.webp
new file mode 100644
index 0000000..83802b4
--- /dev/null
+++ b/tests/test.webp
Binary files differ