mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 15:25:07 +01:00
Expose libvips gaussnoise operation (#2527)
This commit is contained in:
@@ -38,6 +38,10 @@ Implements the [stream.Duplex][1] class.
|
||||
- `options.create.width` **[number][8]?** integral number of pixels wide.
|
||||
- `options.create.height` **[number][8]?** integral number of pixels high.
|
||||
- `options.create.channels` **[number][8]?** integral number of channels, either 3 (RGB) or 4 (RGBA).
|
||||
- `options.create.noise` **[Object][6]?** describes a noise to be created.
|
||||
- `options.create.noise.type` **[string][5]?** type of generated noise. (supported: `gaussian`)
|
||||
- `options.create.noise.mean` **[number][8]?** mean of pixels in generated image.
|
||||
- `options.create.noise.sigma` **[number][8]?** standard deviation of pixels in generated image.
|
||||
- `options.create.background` **([string][5] \| [Object][6])?** parsed by the [color][9] module to extract values for red, green, blue and alpha.
|
||||
|
||||
### Examples
|
||||
|
||||
Reference in New Issue
Block a user