Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

bart (450)

Journal of bart (450)

Wednesday January 21, 2004
05:02 AM

Extracting XMP metadata from image files

[ #16931 ]
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.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • FYI : Dan Brickley wrote a regular expression widget [whump.com] to pull XMP data Adobe files.
  • 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
  • I realize I'm a bit late and you've probably already worked up your own solution, but Image::ExifTool [cpan.org] parses XMP information from JPEG and TIFF files. However, it doesn't have a writing capability (yet...).