Skip to content

Instantly share code, notes, and snippets.

Created Dec 4, 2012
What would you like to do?
Get Exif using PIL
def get_exif(image):
from PIL.ExifTags import TAGS as id_names
image_tags = image._getexif()
return {name: image_tags[id]
for id, name in id_names.items()
if id in image_tags}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment