Skip to content
Advertisement

How to merge a transparent png image with another image using Scikit-image

This is basically the same question that was posted here: How to merge a transparent png image with another image using PIL but using with scikit-image instead of PIL. I mean to paste the png keeping its transparency on top of a background image. Also, if there is actually a way of doing it, I would like to know which one is faster (PIL or scikit-image). Thanks.

Advertisement

Answer

Inspired by user8190410’s answer, I built my own function to do it:

JavaScript

Image output

Please let me know if I can do something to improve computation speed

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement