With the two identical size and mode images in place, execute the following code.
from PIL import Images
img = Image.open("waypoint.png")
im_2 = Image.open("the second image directory/ hello .png")
# Check on mode, size and format first for compatibility.
# Make both modes the same
# Combine the images
im_4 = Image.blend(img, im_2, 0.5)
im_4.show()
With the two identical size and mode images in place, execute the following code.
from PIL import Images
im_1 = Image.open("/constr/pics1/100_canary.png")
# mode is RGBA
im_2 = Image.open("/constr/pics1/100_cockcrow.png")
# Check on mode, size and format first for compatibility.
# Make both modes the same
im_4 = Image.blend(im_1, im_2, 0.5)
im_4.show()