So I am trying to paste a transparent image on top of a normal image. But for some reason, the transparency is gone.
Is there a way to keep the transparency of the second image (the transparent one) on top of the first image (the normal one) without losing the transparency of the second image?
(I am new to PIL by the way)
BG = Image.open("BGImage.png") # normal image, size is 1920x1080
BG = BG.convert("RGBA")
overlay = Image.open("OverlayImage.png") # transparent image, size is 1920x1080
overlay = overlay.convert("RGBA")
BG = Image.alpha_composite(BG, overlay) # I tried doing this but it didn't work
BG.save("NewImage.png")