Skip to content

Instantly share code, notes, and snippets.

@heynemann
Created February 8, 2012 17:42
Show Gist options
  • Save heynemann/1771563 to your computer and use it in GitHub Desktop.
Save heynemann/1771563 to your computer and use it in GitHub Desktop.
Getting exif tags
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