-
-
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
could add a new function noise() like imageMagick provided? #725
Comments
Hello, libvips provides a gaussnoise function for this, which we'd need to expose. It would make the most sense, i.e. will be a bit easier, to add this after #470. |
This would be helpful in our use case as well. |
This feature would be useful in our use cases as well. |
This was added via #2527 and included in sharp v0.27.1 https://sharp.pixelplumbing.com/changelog#v0271---27th-january-2021 // Generate RGB Gaussian noise
await sharp({
create: {
width: 300,
height: 200,
channels: 3,
noise: {
type: 'gaussian',
mean: 128,
sigma: 30
}
}
}).toFile('noise.png'); |
could add a new function noise() like imageMagick provided?
thanks.
The text was updated successfully, but these errors were encountered: