6. ImageChops constant
6.1. Constant
Use the
ImageChops.constant(image, value)
to return an image with a given grey level.from PIL import Image, ImageChops
with Image.open("shapes/x.png") as im1:
im_out = ImageChops.constant(im1, 205)
im_out.save("chops/constant.png")