Skip to content

Instantly share code, notes, and snippets.

@bwhite
Created December 4, 2012 00:45
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwhite/4199461 to your computer and use it in GitHub Desktop.
Save bwhite/4199461 to your computer and use it in GitHub Desktop.
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