diff options
author | Alex Henrie <alexhenrie24@gmail.com> | 2023-09-16 11:54:27 -0600 |
---|---|---|
committer | David Faure <faure@kde.org> | 2023-09-17 16:57:20 +0000 |
commit | 515fc3d414bbc220b9f219704dd07d60391c9920 (patch) | |
tree | 0fb988693a18211e4a9b047486c8e9970f9b8f1b | |
parent | 3060a07a08d8db50dac7cd20d7b0540080eb06f6 (diff) |
Add image/apng
https://www.iana.org/assignments/media-types/image/apng
https://www.iana.org/assignments/media-types/image/vnd.mozilla.apng
https://www.w3.org/TR/png-3/#apng-frame-based-animation
-rw-r--r-- | data/freedesktop.org.xml.in | 14 | ||||
-rw-r--r-- | tests/mime-detection/Animated_PNG_example_bouncing_beach_ball.png | bin | 0 -> 63435 bytes | |||
-rw-r--r-- | tests/mime-detection/list | 2 |
3 files changed, 16 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index 3582c5f..d633b32 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -5320,6 +5320,20 @@ command to generate the output files. </magic> <glob pattern="*.png"/> </mime-type> + <mime-type type="image/apng"> + <comment>Animated PNG image</comment> + <acronym>PNG</acronym> + <expanded-acronym>Portable Network Graphics</expanded-acronym> + <sub-class-of type="image/png"/> + <magic> + <match type="string" value="\x89PNG\r\n\x1A\n" offset="0"> + <match type="string" value="acTL" offset="37"/> + </match> + </magic> + <glob pattern="*.apng"/> + <glob pattern="*.png" weight="40"/> + <alias type="image/vnd.mozilla.apng"/> + </mime-type> <mime-type type="image/rle"> <comment>RLE bitmap image</comment> <acronym>RLE</acronym> diff --git a/tests/mime-detection/Animated_PNG_example_bouncing_beach_ball.png b/tests/mime-detection/Animated_PNG_example_bouncing_beach_ball.png Binary files differnew file mode 100644 index 0000000..1b35084 --- /dev/null +++ b/tests/mime-detection/Animated_PNG_example_bouncing_beach_ball.png diff --git a/tests/mime-detection/list b/tests/mime-detection/list index 62236d9..8d38276 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -137,6 +137,8 @@ test.astc image/astc test.nrw image/x-nikon-nrw ox test-with-container.jxl image/jxl test-without-container.jxl image/jxl +# Copied from https://commons.wikimedia.org/wiki/File:Animated_PNG_example_bouncing_beach_ball.png +Animated_PNG_example_bouncing_beach_ball.png image/apng x # Documents ooo-6.0.doc application/msword |