mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 15:25:07 +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')
|
||||
.ensureAlpha()
|
||||
.extractChannel(3)
|
||||
.colourspace('b-w')
|
||||
.toColourspace('b-w')
|
||||
.raw()
|
||||
.toBuffer();
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user