Extracting XMP metadata using Python
filed in Python on Aug.13, 2006
Some months ago a friend of mine asked if I could modify his pyblosxom blog to parse XMP metadata from jpeg images. After some hours I ended up with a modified version of the rdfpic.py plugin.
Some weeks ago I found myself using the code in another project of mine (no pyblosxom involved this time). I am posting the resulting code: xmppic.py. It is a quick hack: I had no time to learn about XMP triplets and the like. But it works for me (I have used it to batch-extract metadata from more than 4000 pictures). Just drop xmppic.py in your python path and say:
The metadata is returned as a dictionary.
Download: xmppic.py (rename xmppic_py to xmppic.py after downloading).



