dabanlee / blurify

blurify.js is a tiny(~2kb) library to blurred pictures, support graceful downgrade from `css` mode to `canvas` mode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Canvas Method of Blur isn't working correctly

abnersajr opened this issue · comments

Your method to generate blured image with canvas is small but not correct.
If you get other libs that already exist to do that you will see that is not correctly.
Lastly if you get an image rendered with canvas method and compare with filter method you will see.

Do you mean with the same blur value, the images rendered with canvas method and css filter are different?

Here are the example images, you can see the differences.

Canvas
canvas

CSS
css

oh, I got it.

It seems that I have no idea of how to improve it. Can you help me improve the canvas blur algorithm?

For sure on my free time I help with this. 👍

@abnersajr Thanks a lot. 😁