mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
docs: change 'colourspace' to 'toColourspace' (#2174)
This commit is contained in:
parent
70e730bb67
commit
786c5330e9
@ -314,7 +314,7 @@ const { data, info } = await sharp('input.jpg')
|
||||
const data = await sharp('input.png')
|
||||
.ensureAlpha()
|
||||
.extractChannel(3)
|
||||
.colourspace('b-w')
|
||||
.toColourspace('b-w')
|
||||
.raw()
|
||||
.toBuffer();
|
||||
```
|
||||
|
@ -532,7 +532,7 @@ function heif (options) {
|
||||
* const data = await sharp('input.png')
|
||||
* .ensureAlpha()
|
||||
* .extractChannel(3)
|
||||
* .colourspace('b-w')
|
||||
* .toColourspace('b-w')
|
||||
* .raw()
|
||||
* .toBuffer();
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user