Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

remove exif from image

from PIL import Image

image = Image.open('image_file.jpeg')

# next 3 lines strip exif
data = list(image.getdata())
image_without_exif = Image.new(image.mode, image.size)
image_without_exif.putdata(data)

image_without_exif.save('image_file_without_exif.jpeg')
Comment

PREVIOUS NEXT
Code Example
Python :: backslashing in an interactive session in python 
Python :: stack overflow pop item from list in python 
Python :: python variable type casting 
Python :: 198727191002 
Python :: function with parameters python 
Python :: smallest string with a given numeric value 
Python :: Distribute Candy Algorithm Python 
Python :: rename multiple value in column in pandas 
Python :: import all files on the same directory python 
Python :: safe password in python 
Python :: Python check if caps lock is pressed 
Python :: how to remove hidden white spaces n columns 
Python :: how to get each word in a string in python 
Python :: How to Loop Through Tuples using while loop in python 
Python :: How to sort a list by even or odd numbers using a filter? 
Python :: get column means pandas 
Python :: How to separate characters, Numbers and Special characters from given string with python 
Python :: preprocessing image (pixel to vector conversion) 
Python :: set_debug 
Python :: Problem With This? 
Python :: print(((x//y)+1)*z) means in python 
Python :: python run only when list is bigger 
Python :: python return multiple value from a function using a dictionary 
Python :: tkinter window not responding during progress bar 
Python :: how to read file again in python 
Python :: internet spam 
Python :: python - create frequency table between two columns 
Python :: deepface facebook python 
Python :: how to count to 1billion in python 
Python :: how to element into the first index python 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =