Created
December 4, 2012 00:45
-
-
Save bwhite/4199461 to your computer and use it in GitHub Desktop.
Get Exif using PIL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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