Created
February 8, 2012 17:42
-
-
Save heynemann/1771563 to your computer and use it in GitHub Desktop.
Getting exif tags
This file contains hidden or 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
from PIL.ExifTags import TAGS | |
import PIL | |
img = PIL.Image.open('sony-cybershot.jpg') | |
exif = img._getexif() | |
for k, v in exif.items(): | |
print TAGS.get(k, k), v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment