pil to grayscale
from PIL import Image, ImageOps image = Image.open("./Whatever.png") ImageOps.grayscale(image)
python pil to greyscale
#PIL image img2 = img.convert('L')
pillow rgb to grayscale
Image.open(path).convert('LA')