Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

color reverse

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')
Comment

PREVIOUS NEXT
Code Example
Python :: cosine similarity numpy 
Python :: how to index lists in python 
Python :: convert ipynb to py 
Python :: oop in python 
Python :: typecasting python 
Python :: pandas take entries from other column if column is nan 
Python :: nested list comprehension python 
Python :: set intersection 
Python :: reading from a text file 
Python :: print list of list line by line python 
Python :: Python NumPy split Function Syntax 
Python :: django pytest how to load data 
Python :: pandas df mode 
Python :: string comparison in python 
Python :: print all objects in list python 
Python :: python string: .upper() 
Python :: django for beginners 
Python :: print variable python 
Python :: NaN stand for python 
Python :: python convert time 
Python :: adding array to array python 
Python :: Python String count() example 
Python :: pk django 
Python :: how to create multiple columns after applying a function in pandas column python 
Python :: function definition python 
Python :: Showing all column names and indexes dataframe python 
Python :: facet grid, barplot, catplot 
Python :: opencv find image contained within an image 
Python :: input list in function and display column in dataframe python 
Python :: pandas math operation from string 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =