We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We call functions like resize and modulate with their parameters in an object, which results in calls like:
sharp(input) .modulate({ brightness: 0.5, saturation: 0.5, hue: 90 }); sharp(input) .resize({ width: 100, height: 300 });
But this does not work:
sharp(input).sharpen({ sigma: 2, flat: 2, jagged: 3 }
What are you trying to achieve? Symmetry with how I call other functions
Have you searched for similar feature requests? Yes. My search did not turn up any issues.
The text was updated successfully, but these errors were encountered:
Happy to accept a PR, if you're able, that adds the ability to use this approach whilst maintaining the existing API.
Sorry, something went wrong.
Allow sharpen options to be provided as an Object
ea599ad
Also exposes x1, y2, y3 parameters #2561 #2935
The Object-based approach for setting sharpen parameters is now available as of v0.30.3. The previous approach still works and is now deprecated.
sharpen
https://sharp.pixelplumbing.com/api-operation#sharpen
e04cc5e
Also exposes x1, y2, y3 parameters lovell#2561 lovell#2935
No branches or pull requests
We call functions like resize and modulate with their parameters in an object, which results in calls like:
But this does not work:
What are you trying to achieve?
Symmetry with how I call other functions
Have you searched for similar feature requests?
Yes. My search did not turn up any issues.
The text was updated successfully, but these errors were encountered: