mirror of
https://github.com/lovell/sharp.git
synced 2026-02-07 07:06:16 +01:00
docs: change 'colourspace' to 'toColourspace' (#2174)
This commit is contained in:
@@ -314,7 +314,7 @@ const { data, info } = await sharp('input.jpg')
|
|||||||
const data = await sharp('input.png')
|
const data = await sharp('input.png')
|
||||||
.ensureAlpha()
|
.ensureAlpha()
|
||||||
.extractChannel(3)
|
.extractChannel(3)
|
||||||
.colourspace('b-w')
|
.toColourspace('b-w')
|
||||||
.raw()
|
.raw()
|
||||||
.toBuffer();
|
.toBuffer();
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -532,7 +532,7 @@ function heif (options) {
|
|||||||
* const data = await sharp('input.png')
|
* const data = await sharp('input.png')
|
||||||
* .ensureAlpha()
|
* .ensureAlpha()
|
||||||
* .extractChannel(3)
|
* .extractChannel(3)
|
||||||
* .colourspace('b-w')
|
* .toColourspace('b-w')
|
||||||
* .raw()
|
* .raw()
|
||||||
* .toBuffer();
|
* .toBuffer();
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user