Extracting XMP metadata using Python

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).


Leave a Comment

Apuntes de programación Java

En esta página he colgado los resúmenes que he ido haciendo para las clases Programación Avanzada del semestre 2006-I de la Facultad de Ingeniería de la Universidad de Piura. Son una primera versión y están escritos en tono algo informal.


Leave a Comment