mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Docs: correct flatten example to use object instead of string (#2654)
This commit is contained in:
@@ -180,7 +180,7 @@ Merge alpha transparency channel, if any, with a background, then remove the alp
|
||||
|
||||
```javascript
|
||||
await sharp(rgbaInput)
|
||||
.flatten('#F0A703')
|
||||
.flatten({background: '#F0A703' })
|
||||
.toBuffer();
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user