Skip to content

Instantly share code, notes, and snippets.

@bwhite
Created Dec 4, 2012
Embed
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