Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to convert img to gray python

from PIL import Image
img = Image.open('image.png').convert('L')
img.save('greyscale.png')
Comment

PREVIOUS NEXT
Code Example
Python :: numpy array equal 
Python :: how to uninstall python idle on ubuntu 
Python :: how to create random tensor with tensorflow 
Python :: how to print a string by reverse way in python 
Python :: python string math 
Python :: Column names reading csv file python 
Python :: Draw Spiderman With Python And Turtle 
Python :: how to import file from a different location python 
Python :: python getting class name 
Python :: reverse python dict 
Python :: taking multiple input in python 
Python :: matplotlib draw two histograms on same image 
Python :: Write a python program to find the most frequent word in text file 
Python :: python dataframe remove header 
Python :: read csv without header pandas 
Python :: discord py get channel id by name 
Python :: make dataframe index a column 
Python :: pandas find location of values greater than 
Python :: python remove duplicates words from string 
Python :: python selenium set attribute of element 
Python :: Adding new column to existing DataFrame in Pandas by assigning a list 
Python :: converting jupyter notebook files to python 
Python :: rum system commands python 
Python :: read json file 
Python :: create 2d array python list comprehension 
Python :: transform categorical variables python 
Python :: python check if nan 
Python :: check strings last letter python 
Python :: AttributeError: __enter__ python 
Python :: create bigram in python 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =