lib pour manipuler les données EXIF des appareils photos.
cf.
http://tilloy.net/dev/pyexiv2/tutorial.html
import pyexiv2
metadata = pyexiv2.ImageMetadata('test.jpg')
metadata.read()
metadata.exif_keys # liste de toutes les entrées EXIF
tag = metadata['Exif.Image.DateTime']
tag.raw_value
#'2004-07-13T21:23:44Z'
tag.value
#datetime.datetime(2004, 7, 13, 21, 23, 44)
tag.value.strftime('%A %d %B %Y, %H:%M:%S')
#'Tuesday 13 July 2004, 21:23:44'
Now let’s modify the value of the tag and write it back to the file:
>>> import datetime
>>> tag.value = datetime.datetime.today()
>>> metadata.write()