HTML5 Canvas Make Black Transparent
I have a large amount of images with a black background, here is one for example: Is it possible through Javascript to have to ignore the black (#000000) and have it draw on canvas? to appear like this? Basically trying to take the black pixels and make it an alpha channel. ericjbasti So you'll need to run through all the pixels and change the alpha value of all the black pixels. https://jsfiddle.net/0kuph15a/2/ This code creates a buffer (empty canvas) to draw the original image to. Once thats done, it takes all the pixels of this buffer canvas and then iterates over all the pixels and checks