Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-12

file identification and metadata retrieval

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Santhoff

Hi,

currently I'm searching for a library for use with fpc to handle arbitrary files. My goal is to check if file extension corresponds with content (e.g. a .gif named .png) and to extract metadata like author, topic, creation date and the like.

What I have found is:

- Apache Tika - https://tika.apache.org

Very nice looking, handles a lot of file types and can give back content, too. Sadly written in Java.

- Gnomes Tracker - https://wiki.gnome.org/Projects/Tracker

Does handle mime types and is embedded in freeedesktop, looking good at first. On a second check it misses some file types, mostly CAD (no dwg, dxf).

- file(1) and libmagic

Unix standard tools, able to identify files, not able to extract metadata.

Next will be KDE ...

My qestion:
Is there anything already ported or bound to Pascal, which is ready for use out of the box?

Since this is no commercial adventure it should not be more expensive than - let's say 50€ or so.

TIA,
Marc

Marc Santhoff

Reply by email