PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities.
ImageChops.darker() method is used to compare two images pixel by pixel, and returns a new image containing the darker values.
Syntax: ImageChops.darker(image1, image2)
image1: It is the image object or image path of first image.
image2: It is the image object or image path of second image.
Return Value: An Image
Note: Both images should be of same MODE.
Note: Don’t get confused with
Image.blend() method. This method is totally different
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course