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
# Uses the Python Imaging Library | |
# `pip install Pillow` works too | |
from PIL import Image | |
image_filename = "picture_with_EXIF.jpg" | |
image_file = open('image_filename) | |
image = Image.open(image_file) | |
# next 3 lines strip exif | |
image_data = list(image.getdata()) |