ImranAtBhimsoft / metadata-extractor

Automatically exported from code.google.com/p/metadata-extractor
1 stars 0 forks source link

Support additional XMP tags (Contribution) #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Hi, 

For a personal project, I had a need to lookup in Dublin Core (dc:) and 
Photoshop (photoshop:) XMP tags.

After a few modifications to the original XmpParser and XmpDirectory, I started 
developping an extension framework to support additional namespaces.

Please find attached a small contribution to this helpful project.

Current supported namespaces are:
  * EXIF - http://ns.adobe.com/exif/1.0/ (Partial support)
  * Photoshop Auxiliary - http://ns.adobe.com/exif/1.0/aux/
  * EXIF TIFF - http://ns.adobe.com/tiff/1.0/ (Partial support)
  * Dublin Core - http://purl.org/dc/elements/1.1/
  * Adobe Photoshop - http://ns.adobe.com/photoshop/1.0/
  * Creative Commons - http://creativecommons.org/ns#

Each extension is registered to the XmpDirectory, eg:
    directory.addExtension(new XmpDcExtension());

The existing API has not been modified, but the XmpDirectory tags have been 
marked deprecated.

Accessing the data is now done using the extension's enum values, eg:
    directory.getDescription(XmpDcExtension.DC.DESCRIPTION.value());

Enjoy!
Olivier

Original issue reported on code.google.com by oba...@gmail.com on 11 Feb 2011 at 3:26

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for your submission.  This sounds like a great idea and I'll check it 
out once I've finished merging a few branches of the code into this SVN repo.

Original comment by drewnoakes on 24 Apr 2011 at 6:51

GoogleCodeExporter commented 9 years ago

Original comment by drewnoakes on 16 Oct 2012 at 4:01

GoogleCodeExporter commented 9 years ago

Original comment by drewnoakes on 16 Oct 2012 at 4:02