Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pil to grayscale

from PIL import Image, ImageOps

image = Image.open("./Whatever.png")
ImageOps.grayscale(image)
Comment

python pil to greyscale

#PIL image
img2 = img.convert('L')
Comment

PREVIOUS NEXT
Code Example
Python :: all the positions of a letter occurrences in a string python 
Python :: python ascii caesar cipher 
Python :: making a function wait in python 
Python :: pandas new column from others 
Python :: timeit jupyter 
Python :: pandas convert multiple columns to categorical 
Python :: change selected option optionmenu tkinter 
Python :: how to run python file from cmd in dockerfile 
Python :: comparing two dataframe columns 
Python :: how to make html files open in chrome using python 
Python :: python transpose list of lists 
Python :: lista to txt python 
Python :: stdout.write python 
Python :: lecture de fichier python 
Python :: django template tag multiple arguments 
Python :: bot wait_for discord py 
Python :: no such table: django_session admin 
Python :: replace character in column 
Python :: django form set min and max value 
Python :: check if part of list is in another list python 
Python :: remove all whitespace from string python 
Python :: pandas str is in list 
Python :: python add all items in list 
Python :: ursina python 
Python :: python numpy array delete multiple columns 
Python :: python detect lines 
Python :: how do i print a list line by line in python 
Python :: change image resolution pillow 
Python :: flatten nested list 
Python :: how to display address in python 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =