[File] [PATCH] of Magdir/animation for static AVIF images *.avif
Martin Reboredo
yakoyoku at gmail.com
Fri Oct 16 16:20:23 UTC 2020
Hi,
trying to get information from an AVIF image only reports that is an ISO
Media.
$ file drstone.avif
drstone.avif: ISO Media
$ file -i drstone.avif
drstone.avif: application/octet-stream; charset=binary
As of September of 2020 the working draft describes two formats for
AVIF, static image and image sequence with image/avif as their MIME type
(https://aomediacodec.github.io/av1-avif/).
With the patch now I have the correct information shown.
$ file drstone.avif
drstone.avif: ISO Media, AVIF Image
$ file -i drstone.avif
drstone.avif: image/avif; charset=binary
Best Regards,
-> Martin Reboredo
Signed-off-by: Martin Reboredo <yakoyoku at gmail.com>
---
magic/Magdir/animation | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/magic/Magdir/animation b/magic/Magdir/animation
index 7f75cb8c..dd843ad2 100644
--- a/magic/Magdir/animation
+++ b/magic/Magdir/animation
@@ -219,6 +219,12 @@
!:mime image/heif-sequence
>8 string avcs \b, HEIF Image Sequence AVC
!:mime image/heif-sequence
+# AVIF image format
+# see https://aomediacodec.github.io/av1-avif/
+>8 string avif \b, AVIF Image
+!:mime image/avif
+>8 string avis \b, AVIF Image Sequence
+!:mime image/avif
>8 string ROSS \b, Ross Video
>8 string sdv \b, SD Memory Card Video
--
File mailing list
File at astron.com
https://mailman.astron.com/mailman/listinfo/file
More information about the File
mailing list