docs: change 'colourspace' to 'toColourspace' (#2174)

This commit is contained in:
Floris de Bijl 2020-04-21 10:44:22 +02:00 committed by GitHub
parent 70e730bb67
commit 786c5330e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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();
``` ```

View File

@ -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();
* *