Author Topic: updated gimp-xcf.trid.xml for GIMP image format  (Read 748 times)

jenderek

  • Sr. Member
  • ****
  • Posts: 375
updated gimp-xcf.trid.xml for GIMP image format
« on: June 08, 2023, 12:45:40 AM »
Hello trid users,

some days ago i must update/replace some pictures in my contacts.  One format
used filename extension XCF. That is mainly used by software GIMP.

So i run trid utility on my XCF examples. The samples are described as "GIMP
image format" with mime type application/octet-stream by gimp-xcf.trid.xml
(See appended output/trid-v-old.txt).

For comparison reason i also run file command (version 5.44) on such
samples. Here all samples are also recognised and described as "GIMP XCF image
data". The tool also show some additional information (like image dimensions
and used color space). It also shows a mime type image/x-xcf (see appended
output/file-i-5.44.txt) and correct file name suffix xcf (see appended
output/file-ext-5.44.txt).

For comparison reason i also run the file format identification utility DROID
( See https://sourceforge.net/projects/droid/). Here the examples are also
recognised. These are described as "Gimp Image File Format" without mime type
by PUID fmt/615. Here the XCF suffix is considered as valid.

On my Linux systems the XCF samples are associated with image/x-xcf mime type
by the shared-mime database. The main associated application is GIMP, but
sometimes it is also associated with Krita or Ocular. Although i have also
installed GIMP on my windows system, there the mime type is missing.  But when
looking on web site extension.nirsoft.net/xcf there for some older GIMP
versions this mime type is listed. So i choose the type used by others. So
this is now expressed line like:
      <Mime>image/x-xcf</Mime>

With the updated trid definition now my XCF graphics are described like before
but with mime type (see appended output/trid-v-new.txt). TrID definitions and
output are stored in archive xcf_trid.zip. I hope that my definition can be
used in future version of triddefs.

With best wishes
Jörg Jenderek

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: updated gimp-xcf.trid.xml for GIMP image format
« Reply #1 on: June 08, 2023, 03:12:57 AM »
Thanks Jörg!