Created
March 12, 2022 00:52
-
-
Save hashABCD/fdd736afab4b42a982ccefed4bffd504 to your computer and use it in GitHub Desktop.
Extract Metadata using python
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
# Import Libraries | |
from PIL import Image | |
from PIL.ExifTags import TAGS | |
# Open Image | |
img=Image.open('img.jpg') | |
#Get EXIF Data | |
exif_table={} | |
for k, v in img.getexif().items(): | |
tag=TAGS.get(k) | |
exif_table[tag]=v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment