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

White overlay/fade artifacts on dark images #16

Open
brokosz opened this issue May 4, 2021 · 3 comments
Open

White overlay/fade artifacts on dark images #16

brokosz opened this issue May 4, 2021 · 3 comments

Comments

@brokosz
Copy link

brokosz commented May 4, 2021

When blurring a predominantly dark or black image, the right side of the image has a pronounced white faded edge. Not sure if there's some way to render this off image or change the color of the transformation.

@sindresorhus
Copy link
Owner

Could you share an example?

@brokosz
Copy link
Author

brokosz commented May 4, 2021

Sure - source image, minimum blur, and maximum blur:
IMG_2432
IMG_2482
IMG_2483

@sindresorhus
Copy link
Owner

I looked into this today. This is caused by rounding error somewhere in Apple's blurring code which causes a 1px gap on the right side, which when blurred, becomes much larger. I unfortunately did not yet manage to find a solution to this.

However, there's an easy workaround. Just slightly crop the height of your source image before opening it in Blear and you won't see the issue.

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

No branches or pull requests

2 participants