StackBlur icon indicating copy to clipboard operation
StackBlur copied to clipboard

StackBlur does not work properly when there is an alpha channel in the image.

Open flexeo opened this issue 3 years ago • 3 comments

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

flexeo avatar Feb 25 '22 11:02 flexeo

StackBlur is not very good with alpha channels :(

flozz avatar Mar 08 '22 15:03 flozz

Do you think it's complicated to make a fix?

flexeo avatar Mar 08 '22 16:03 flexeo

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:

Capture d’écran de 2022-03-08 17-37-18

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... :(

flozz avatar Mar 08 '22 16:03 flozz