[File] [PATCH] of Magdir/images for Corel Gallery Clipart *.bmf
Jörg Jenderek
joerg.jen.der.ek at gmx.net
Mon Jun 29 18:55:47 UTC 2020
Hello,
some days ago i send patches for Corel files.
Now i also run file command version 5.39 on Corel GALLERY clip arts
with file name extension bmf. I get an output like:
CAR366.BMF: DIY-Thermocam raw data (Lepton 3.x),
scale 19969-6651, spot sensor temperature 0.000000,
unit celsius, color scheme 0, calibration: offset
9518231711657976900000.000000, slope 32.004883
CASHIERC.BMF: DIY-Thermocam raw data (Lepton 3.x),
scale 63747-48637, spot sensor temperature 0.000000,
unit celsius, color scheme 0, calibration: offset
9518231711657976900000.000000, slope 32.004883
CERT10.BMF: DIY-Thermocam raw data (Lepton 2.x),
scale 31874-0, spot sensor temperature 0.000000,
unit celsius, color scheme 0, calibration: offset
0.000000,
slope 5420191280492058000000000000000000000.000000
COMET.BMF: data
DISKETTE.BMF: data
FACE.BMF: DIY-Thermocam raw data (Lepton 3.x),
scale 11524-35336, spot sensor temperature 0.000000,
unit celsius, color scheme 0, calibration: offset
9518231711657976900000.000000, slope 32.004883
INDIAN.BMF: DIY-Thermocam raw data (Lepton 3.x),
scale 1280-0, spot sensor temperature 0.000000,
unit celsius, color scheme 0, calibration: offset
-137602531328.000000,
slope 44640305983516784000000000000000000.000000
KMC14.BMF: DIY-Thermocam raw data (Lepton 3.x),
scale 1271-64007, spot sensor temperature 0.000000,
unit celsius, color scheme 0, calibration: offset
0.000000, slope 50855956.000000
WEDDING.BMF: data
XMAS015.BMF: DIY-Thermocam raw data (Lepton 3.x),
scale 63372-2311, spot sensor temperature 0.000000,
unit celsius, color scheme 0, calibration: offset
0.000000, slope 50855956.000000
Many of such inspected Corel samples are misidentified as
DIY-Thermocam raw data by Magdir\measure. This misidentification also
happen for many other files, especially when running file command
with -k option. Unfortunately no URL or person is mentioned there to
get further information about file format or a contact information.
Maybe a DIY-Thermocam expert can fix this.
Some information about BMF can be found on file formats archive team
site. So i add a comment line like:
# URL: http://fileformats.archiveteam.org/wiki/Corel_Gallery
The TrID file identification tool describes the BMF examples as
"Corel Binary Material Format". The graphic tool XnView can read and
display the preview image and calls such files "Corel Flow", but the
official Corel software register the phrase "Corel GALLERY Clipart"
for such BMF files.
According to documentation the Corel file start with magic string
like @CorelBMF. This is now expressed by additional magic lines
inside Magdir/images like:
0 string @CorelBMF\n\rCorel\040Corporation Corel GALLERY Clipart
Afterwards show user defined mime type and file name extension by
lines like:
!:mime image/x-corel-bmf
!:ext bmf
After applying the above mentioned modifications by patch
file-5.39-images-bmf.diff then i get a correct describing output like:
CAR366.BMF: Corel GALLERY Clipart
CASHIERC.BMF: Corel GALLERY Clipart
CERT10.BMF: Corel GALLERY Clipart
COMET.BMF: Corel GALLERY Clipart
DISKETTE.BMF: Corel GALLERY Clipart
FACE.BMF: Corel GALLERY Clipart
INDIAN.BMF: Corel GALLERY Clipart
KMC14.BMF: Corel GALLERY Clipart
WEDDING.BMF: Corel GALLERY Clipart
XMAS015.BMF: Corel GALLERY Clipart
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 --------------
--- file-5.39/magic/Magdir/images.old 2020-05-31 10:34:40 +0000
+++ file-5.39/magic/Magdir/images 2020-06-29 18:39:53 +0000
@@ -1409,8 +1409,17 @@
# Xara (for a while: Corel Xara) is a graphic package, see
# http://www.xara.com/ for Windows and as GPL application for Linux
0 string XARA\243\243 Xara graphics file
+# From: Joerg Jenderek
+# URL: http://fileformats.archiveteam.org/wiki/Corel_Gallery
+# Reference: http://mark0.net/download/triddefs_xml.7z/defs/b/bmf-corel.trid.xml
+# Note: called "Corel Binary Material Format" by TrID and
+# "Corel Flow" by XnView
+0 string @CorelBMF\n\rCorel\040Corporation Corel GALLERY Clipart
+!:mime image/x-corel-bmf
+!:ext bmf
+
# https://www.cartesianinc.com/Tech/
0 string CPC\262 Cartesian Perceptual Compression image
!:mime image/x-cpi
More information about the File
mailing list