Categories
How to remove black background from transparent PIL image?
I need Pillow to not make a transparent image have a black background, how can I do this?
Answer the question
In order to leave comments, you need to log in
Use PNG image format
bg.paste(icon, mask=icon.convert('RGBA'))
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question