Skip to content

Instantly share code, notes, and snippets.

@olto
Last active November 4, 2016 07:37
Show Gist options
  • Select an option

  • Save olto/49bd0b1574e3b34fc601a4aa7517640d to your computer and use it in GitHub Desktop.

Select an option

Save olto/49bd0b1574e3b34fc601a4aa7517640d to your computer and use it in GitHub Desktop.
Protect your data from unwanted access - Get Exif info from your foto's
#!/usr/bin/python3
# -*- coding: UTF-8 -*-
""" Protect your data from unwanted access
Get Exif-Data from your foto's
Script by olto """
from PIL import Image
from PIL.ExifTags import TAGS, GPSTAGS
image = Image.open("test.jpg")
print(image)
info = image._getexif()
for tag, value in info.items():
key = TAGS.get(tag, tag)
print(key + " " + str(value))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment