-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add blur precision #4168
Add blur precision #4168
Conversation
FWIW, I'm uncertain about exposing |
That's unfortunate, maybe I could remove |
Thank you very much for the PR Marcos. It looks like libvips/libvips#1162 relates to (u)short images processed by I guess as a compromise we could limit the use of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once we're happy with the API for this, please can you update the TypeScript definitions at https://github.com/lovell/sharp/blob/main/lib/index.d.ts
You're welcome! Would you prefer to fall back to |
Good catch, I opened PR libvips/libvips#4055 to address the crash in |
b55f85c
to
79ff825
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates, I've left a couple of comments inline otherwise this is good to go.
79ff825
to
11b64dd
Compare
Thank you very much for working on this Marcos. |
This PR adds
precision
option to.blur()
.Currently, using blur on large images is quite slow. In my case, setting precision to
approximate
significantly improves performance, reducing the processing time from over a minute to just a few seconds.