Home > OS >  Paste RBG image without its background onto another picture (PIL)
Paste RBG image without its background onto another picture (PIL)

Time:12-11

So I need to post an RGB picture (with transparent background) onto background image, but when I am trying to post it with image.paste() I get transparent background through which I don't see the background I want. What should I do?

Thanks!

Code (its just that):

        skin = Image.open("./temp2.png")
        skin = skin.resize((148, 355))
        stats.paste(skin,(42,232))

        stats.save("temp.png")

Images:

enter image description here

  • Related