StackBlur
StackBlur copied to clipboard
StackBlur does not work properly when there is an alpha channel in the image.
StackBlur does not work properly when there is an alpha channel in the image.
There is a white outline in the result: [](https://jsfiddle.net/badabou/e3bq8s2r/1
StackBlur is not very good with alpha channels :(
Do you think it's complicated to make a fix?
I do not think it is simple to fix, as transparent pixels also have values on R, G and B channels... Here is what your image looks like if you remove the alpha channel:
FYI, I am not the author of this algorithm, I just made little fixes and packaged it on NPM. I am afraid I am not able to make changes like this one... :(