[Image-SIG] how to get exif information

Winfried Diehm winfried.diehm at online.de
Tue Jan 31 18:19:37 CET 2006


Dear SIG members
got pil 1.1.5 installed and running.
Want to get exif information from jpeg-images. When I open an image, the image 
has a method info. This method returns a dict with one key. The value is a 
string with 14403 characters. For example:
>>> im.info.keys()
['exif']
>>> im.info["exif"][0:20]
'Exif\x00\x00II*\x00\x08\x00\x00\x00\x0b\x00\x0e\x01\x02\x00'
How can I get the exif information (human readable;-) out of the string ?

Thanks
Winfried


More information about the Image-SIG mailing list