Extracting XMP metadata from image files

bart on 2004-01-21T10:02:41

I need to extract XMP metadata from image files. My main target for now is extracting the RDF info (XML) that Photoshop can embed in JPEG files, but according to the draft spec (100k PDF file), this kind of metadata can also be embedded in GIF, PNG, TIFF, EPS, SVG and PDF files.

Now it looks like the proper way to extract it, is the same way that Image::Info works, extracting all sorts of data out of image files, but not this kind.

Is this something one could reasonably expect Image::Info to handle? In other words, should Image::Info get patched? Or should I copy the work that's gone into Image::Info and adapt it, resulting into a separate module?

OTOH, it might be nice to be able to write out modified XMP data as well. I don't think that's quite up Image::Info's street.

I'll start by doing the latter, I can see where to go from there, depending on how heavy the required modifications are.


Extracting XMP

asc on 2004-01-21T13:28:59

FYI : Dan Brickley wrote a regular expression widget to pull XMP data Adobe files.

Current Status???

jcavanaugh on 2004-02-14T20:56:07

Bart,

I have a similar need myself (Im going to have to move to XMP because PhotoShop keeps trashing my Canon Makernotes...) Where do you stand with the implementation?? Perhaps we could collaborate on this?

Ive done hacking in the past on the Image::Info module (I wrote the support for Canon Makernotes) so Im up to speed on some of the issues with it.

--
John Cavanaugh

Try Image::ExifTool

boardhead on 2004-10-27T22:44:53

I realize I'm a bit late and you've probably already worked up your own solution, but Image::ExifTool parses XMP information from JPEG and TIFF files. However, it doesn't have a writing capability (yet...).