[File] [PATCH] of Magdir/riff for Windows animated cursor *.ani
Jörg Jenderek
joerg.jen.der.ek at gmx.net
Fri Jul 10 23:16:36 UTC 2020
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
some days ago i handled some RIFF based files.
When i run file command version 5.39 on Windows animated cursors with
file name extension ani i get a correct output like:
3DGMOVE.ANI: RIFF (little-endian) data, animated cursor
DINOSAUR.ANI: RIFF (little-endian) data, animated cursor
eyepointer.ani: RIFF (little-endian) data, animated cursor
FLAMES16.ANI: RIFF (little-endian) data, animated cursor
HGLASS.ANI: RIFF (little-endian) data, animated cursor
REDSHARK.ANI: RIFF (little-endian) data, animated cursor
All samples are at least general described by Magdir/riff with line
0 string RIFF RIFF (little-endian) data
but with --extension option only ??? is displayed. Furthermore with
- -i option only generic application/octet-stream is shown.
Some information about such Windows animated cursors is found on file
formats archive team website. That is now expressed by comment line
like:
# http://fileformats.archiveteam.org/wiki/Windows_Animated_Cursor
More file formation information can be got from AniTuner Online Help.
This is expressed by reference comment line like
# Reference: https://www.gdgsoft.com/anituner/help/aniformat.htm
According to documentation the second RIFF tag for Windows animated
cursors is ACON. That is expressed by line
>8 string ACON \b, animated cursor
According to reposcope.com website show now afterwards a user defined
mime type and file name extension by lines like:
!:mime application/x-navi-animation
!:ext ani
According to AniTuner help often some bytes later the INAM tag
appears followed by length of title and title string. This is now
shown by lines like
>>24 string INAM
>>>28 pstring/l x "%s"
Afterward comes IART tag followed by length of author and author
string. This is now shown by lines
>>>(28.l+32) ubelong 0x49415254
>>>>&0 pstring/l x %s
After applying the above mentioned modifications by patch
file-5.39-riff-ani.diff then for some Windows animated cursor
more detailed information is shown like:
3DGMOVE.ANI: RIFF (little-endian) data, animated cursor
"3D gold move arrows"
Dan Goldwater, (c) 1993
DINOSAUR.ANI: RIFF (little-endian) data, animated cursor
"Dinosaur ('Reginald')"
Copyright (C) 1993 Microsoft Corporation
eyepointer.ani: RIFF (little-endian) data, animated cursor
"Eye pointer"
Dierk - anicursor.com
FLAMES16.ANI: RIFF (little-endian) data, animated cursor
HGLASS.ANI: RIFF (little-endian) data, animated cursor
"Hour Glass"
REDSHARK.ANI: RIFF (little-endian) data, animated cursor
I hope my diff file can be applied in future version of
file utility.
With best wishes
Jörg Jenderek
- --
Jörg Jenderek
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
iF0EARECAB0WIQS5/qNWKD4ASGOJGL+v8rHJQhrU1gUCXwj2ygAKCRCv8rHJQhrU
1j0+AKCCUJGqqbZiAXwqce4Gqju0SNZf2ACgiQWcN0Ah4Nzri9FXcc0DB3JkNu8=
=3r9b
-----END PGP SIGNATURE-----
-------------- next part --------------
--- file-5.39/magic/Magdir/riff.old 2020-06-15 00:01:01 +0000
+++ file-5.39/magic/Magdir/riff 2020-07-10 23:06:19 +0000
@@ -268,3 +268,16 @@
# Animated Cursor format
+# Update: Joerg Jenderek
+# URL: http://fileformats.archiveteam.org/wiki/Windows_Animated_Cursor
+# Reference: https://www.gdgsoft.com/anituner/help/aniformat.htm
>8 string ACON \b, animated cursor
+!:mime application/x-navi-animation
+# http://extension.nirsoft.net/ani
+#!:mime image/ani
+!:ext ani
+# INAM tag followed by length of title
+>>24 string INAM
+>>>28 pstring/l x "%s"
+# IART tag followed by length of author
+>>>(28.l+32) ubelong 0x49415254
+>>>>&0 pstring/l x %s
# SoundFont 2 <mpruett at sgi.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file-5.39-riff-ani.diff.sig
Type: application/octet-stream
Size: 95 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20200711/be69668f/attachment.obj>
More information about the File
mailing list