Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python pil invert image color

from PIL import Image
import PIL.ImageOps    

image = Image.open('your_image.png')

inverted_image = PIL.ImageOps.invert(image)

inverted_image.save('new_name.png')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #pil #invert #image #color
ADD COMMENT
Topic
Name
4+7 =