[File] [PATCH] Magdir/images iCEDraw graphic *.IDF

Jörg Jenderek joerg.jen.der.ek at gmx.net
Sat Jul 30 17:38:42 UTC 2022


Hello,

some days ago i send patch for Microsoft/MIDI Instrument Definition
File. These have file name extension IDF. For control reason i look
for other files with IDF extension on my systems. These are graphic
images.

When running file command (version 5.42) on such examples i get an
output like:

ICE-9605.IDF: data
LS-ICE.IDF:   data
MD-XMAS.IDF:  data
SG-LAME1.IDF: data
SQ-FORCE.IDF: data
US-HLWN.IDF:  data
test.idf:     data

Furthermore only generic mime type application/octet-stream is
shown with -i option. With option --extension only 3 byte
sequence ??? is shown.

For comparison reason i run the file format identification utility
TrID ( See https://mark0.net/soft-trid-e.html). This identifies
all examples as "iCEDraw graphic" by idf-icedraw.trid.xml.
Luckily TrID with -v option shows file name extension and reference
site. That informations are now expressed by additional comment lines
inside Magdir/images like:
# URL:		http://fileformats.archiveteam.org/wiki/ICEDraw
# Reference:	http://mark0.net/download/triddefs_xml.7z
#		defs/idf-icedraw.trid.xml

On that site you find test samples and software that can handle such
IDF images (FFmpeg and ansilove). So i verified graphics by command
lines like:
	ffprobe ICE-9605.IDF
	ansilove -s SQ-FORCE.IDF

According to that site such graphics always start with same bytes. So
this is now expressed inside  Magdir/images by lines like:

0	string		\0041.4\0\0\0\0O\0	iCEDraw graphic
!:mime	image/x-idf
!:ext	idf

Instead of generic mime type application/octet-stream i show an user
defined one.

After applying the above mentioned modifications by patch
file-5.42-images-idf.diff then all my IDF images are now recognized.
This now looks like:

ICE-9605.IDF: iCEDraw graphic
LS-ICE.IDF:   iCEDraw graphic
MD-XMAS.IDF:  iCEDraw graphic
SG-LAME1.IDF: iCEDraw graphic
SQ-FORCE.IDF: iCEDraw graphic
US-HLWN.IDF:  iCEDraw graphic
test.idf:     iCEDraw graphic

I hope my diff file can be applied in future version of file
utility.

With best wishes,
Jörg Jenderek
--
Jörg Jenderek





-------------- next part --------------
A non-text attachment was scrubbed...
Name: trid-v-idf.txt.gz
Type: application/x-gzip
Size: 415 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20220730/d9c71d88/attachment.bin>
-------------- next part --------------
--- file-5.42/magic/Magdir/images.old	2022-05-22 00:50:17.000000000 +0200
+++ file-5.42/magic/Magdir/images	2022-07-30 19:33:16.003287100 +0200
@@ -3814,3 +3814,14 @@
 >0x24	ulelong		1	\b, embedded PNG image
 >0x24	ulelong		2	\b, embedded WebP image
 >0x24	ulelong		3	\b, Basis Universal
+
+# Summary:	iCEDraw graphic *.IDF
+# URL:		http://fileformats.archiveteam.org/wiki/ICEDraw
+# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/i/idf-icedraw.trid.xml
+# From:		Joerg Jenderek
+# Note:		called "iCEDraw graphic" by TrID, "iCEDraw text" by FFmpeg and "iCE Draw" by Ansilove
+#		verified by FFmpeg command `ffprobe ICE-9605.IDF` and `ansilove -s SQ-FORCE.IDF`
+0	string		\0041.4\0\0\0\0O\0	iCEDraw graphic
+#!:mime	application/octet-stream
+!:mime	image/x-idf
+!:ext	idf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file-5.42-images-idf.diff.sig
Type: application/octet-stream
Size: 641 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20220730/d9c71d88/attachment.obj>


More information about the File mailing list