Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
flexeo opened this issue Feb 25, 2022 · 3 comments

Comments

@flexeo
Copy link

flexeo commented Feb 25, 2022

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

@flozz
Copy link
Owner

flozz commented Mar 8, 2022

StackBlur is not very good with alpha channels :(

@flexeo
Copy link
Author

flexeo commented Mar 8, 2022

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

@flozz
Copy link
Owner

flozz commented Mar 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants