18. ImageChops overlay
18.1. Overlay
Use the
ImageChops.overlay(image1, image2)
method to overlay 2 images of the same size.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.overlay(im1, im2)
im_out.save("chops/overlay.png")