Skip to content

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

Open

Description

@flexeo

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

Activity

  1. flozz commented on Mar 8, 2022

    @flozz
    Owner

    StackBlur is not very good with alpha channels :(

  2. flexeo commented on Mar 8, 2022

    @flexeo
    Author

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

  3. flozz commented on Mar 8, 2022

    @flozz
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions