4. ImageOps grayscale


4.1. Grayscale

Use the ImageOps.grayscale(image) method to convert an image to grayscale
from PIL import Image, ImageOps

with Image.open("test_images/cliffs.jpg") as im:
    im1 = ImageOps.grayscale(im1)
    im1.save("imageOps/grayscale.png")
../_images/compare_grayscale.png