from PIL import Image y = Image.open("wot.png") z = Image.open("border.png") y.paste(z, (0, 0)) y.save("ok.png")