Last active
November 4, 2016 07:37
-
-
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
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
| #!/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