Author Topic: updated bitmap-miff.trid.xml for ImageMagick Machine independent File  (Read 134 times)

jenderek

  • Full Member
  • ***
  • Posts: 102
Hello trid users,

some days ago i had to handle some ImageMagick bitmaps which have
normally filename extension miff. When searching on my systems for
such files and running trid some samples like smile_anim.miff are
described as "Unknown!" (See appended output/trid-old.txt).

For comparison reason i run other utilities.
The droid tool { found at http://droid.sourceforge.net/ } only
recognize the variant described by bitmap-miff-rem.trid.xml ( see
appended output/droid.csv).
The file utility {https://en.wikipedia.org/wiki/File_(command)} also
does not recognize the unknown samples (See appended
output/file-5.37.txt).

So i update bitmap-miff.trid.xml by running tridscan on undetected
samples.

First the used reference URL www.go.dlr.de/pdinfo_dv/ImageMagick.html does
not exist any more. So i replace it with page about MIFF File Format on
sourceforge.net by line

   <RefURL>http://imagemagick.sourceforge.net/http/www/miff.html</RefURL>

According to that site MIFF files should start with keyword-value combination
id=ImageMagick. So "good" examples are detected by XML construct:

   <ASCII> i d = I m a g e M a g i c k</ASCII>
   <Pos>0</Pos>

The undetected samples start with the capitalized phrase Id=ImageMagick. So
in front block section this pattern now becomes

   <ASCII> d = I m a g e M a g i c k</ASCII>
   <Pos>1</Pos>

So i also add a global string section with line

   <String>ID=IMAGEMAGICK</String>

Some sites use image/miff as mime type, but i found no such official
registered type at IANA. So i add a user defined one by line:

   <Mime>image/x-miff</Mime>

Where do i find the "bad" but functioning examples? In the demo sub directory
inside the ImageMagick sources. So ImageMagick itself violates it's own file
format recommendations.

With the new trid definition all miff-examples are now described ( see
appended output/trid-new-v.txt). TrID definition, some examples and output
are stored in archive miff.zip. I hope that my XML file can be used in
future version of triddefs.

With best wishes
Jörg Jenderek

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 1932
    • Mark0's Home Page
Re: updated bitmap-miff.trid.xml for ImageMagick Machine independent File
« Reply #1 on: November 13, 2019, 01:42:11 PM »
Perfect, thanks!