Skip to content

Instantly share code, notes, and snippets.

View ngtvspc's full-sized avatar
🥞
A few short of a FullStack

Shawn Shojaie ngtvspc

🥞
A few short of a FullStack
View GitHub Profile
@ngtvspc
ngtvspc / EXIF_remover.py
Created January 9, 2018 23:00
Remove EXIF metadata from images
# 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())