Skip to content

Instantly share code, notes, and snippets.

View nicolaskenner's full-sized avatar
🏠
Working from home

Nicolas Kenner nicolaskenner

🏠
Working from home
View GitHub Profile
from PIL import Image
from secrets import token_urlsafe
if __name__ == '__main__':
filepath = input('File Path: ')
image = Image.open(filepath)
image_data = list(image.getdata())
image_without_exif = Image.new(image.mode, image.size)
image_without_exif.putdata(image_data)
image_without_exif.save('{}.jpeg'.format(token_urlsafe()))