16. ImageChops soft_light


16.1. Soft_light

Use the ImageChops.soft_light(image1, image2) method superimposes two images on top of each other using the Soft Light algorithm.
from PIL import Image, ImageChops


with Image.open("test_images/crosses.png") as im1:
    with Image.open("test_images/circles.png") as im2:
        im_out = ImageChops.soft_light(im1, im2)
        im_out.save("chops/soft_light.png")
../_images/compare_soft_light.png