Skip to content

Commit da43a30

Browse files
committedMar 21, 2021
Docs: correct typo in description of threshold operation
1 parent a38126c commit da43a30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎docs/api-operation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Returns **Sharp**
263263

264264
## threshold
265265

266-
Any pixel value greather than or equal to the threshold value will be set to 255, otherwise it will be set to 0.
266+
Any pixel value greater than or equal to the threshold value will be set to 255, otherwise it will be set to 0.
267267

268268
### Parameters
269269

‎lib/operation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ function convolve (kernel) {
396396
}
397397

398398
/**
399-
* Any pixel value greather than or equal to the threshold value will be set to 255, otherwise it will be set to 0.
399+
* Any pixel value greater than or equal to the threshold value will be set to 255, otherwise it will be set to 0.
400400
* @param {number} [threshold=128] - a value in the range 0-255 representing the level at which the threshold will be applied.
401401
* @param {Object} [options]
402402
* @param {Boolean} [options.greyscale=true] - convert to single channel greyscale.

0 commit comments

Comments
 (0)
Please sign in to comment.