Docs: correct syntax in sharpen example (#3310)

This commit is contained in:
Lionel Tzatzkin 2022-07-29 13:11:16 +02:00 committed by GitHub
parent dd56a9699e
commit 9a0d9eed74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ const data = await sharp(input).sharpen({ sigma: 2 }).toBuffer();
const data = await sharp(input) const data = await sharp(input)
.sharpen({ .sharpen({
sigma: 2, sigma: 2,
m1: 0 m1: 0,
m2: 3, m2: 3,
x1: 3, x1: 3,
y2: 15, y2: 15,

View File

@ -205,7 +205,7 @@ function affine (matrix, options) {
* const data = await sharp(input) * const data = await sharp(input)
* .sharpen({ * .sharpen({
* sigma: 2, * sigma: 2,
* m1: 0 * m1: 0,
* m2: 3, * m2: 3,
* x1: 3, * x1: 3,
* y2: 15, * y2: 15,