[File] [PATCH v2] of Magdir/animation for static AVIF images *.avif

yakoyoku at gmail.com yakoyoku at gmail.com
Wed Dec 9 21:36:09 UTC 2020


From: Martin Reboredo <yakoyoku at gmail.com>

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

v2:
- Update to animation version 1.82

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 3f1fcc6c..12b07543 100644
--- a/magic/Magdir/animation
+++ b/magic/Magdir/animation
@@ -290,6 +290,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		risx		\b, Representation Index Segment for MPEG-2 TS Segments
 >8	string		ROSS		\b, Ross Video
 >8	string		sdv		\b, SD Memory Card Video
-- 
2.29.2



More information about the File mailing list