Python PIL | ImageChops.constant()
PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The
Image module provides a class with the same name which is used to represent a PIL image. The module also provides a number of factory functions, including functions to load images from files, and to create new images.
PIL.ImageChops.constant()Fill a channel with a given grey level.
Syntax: PIL.ImageChops.constant(image, value)
image– take an image with there extension type.
Returns: An Image.
Another Example:Taking another image with different value to see the change in grey intensity.