views:

81

answers:

1

I'm looking for the best tool out there to extract any and all metadata embedded within the most populat image file formats (JPEG and PNG specifically). whatever's in there, I'd like to know about it (XMP, Exif, IPTC, IIM, etc.). Ideally I'm looking for an all-in-one solution that I can run from a command line, but I'm interested to hear about any other tools you've found in this area to be of value.

I have found the following, each with advantages/disadvantages:

  • ExifTool is good, but the output is a little more roughshod that I would like.
  • DumpImage from the Metadata Working Group has good formatting of the metadata it does find, but doesn't support PNG.
A: 

As you did not mention any preferred programming language I take PHP as an example. There is an Exif Extension for PHP which can be used to easily retrieve Metadata from an Image.

http://www.php.net/manual/en/function.exif-read-data.php

You could easily create a script that you can call from the command line. I must add that the extension only seems to provide support for JPEG and TIFF images.

Best wishes,
Fabian

halfdan