Docs: correct flatten example to use object instead of string (#2654)

This commit is contained in:
Timo Hausmann
2021-04-06 18:21:14 +02:00
committed by GitHub
parent 16cf9f0ef2
commit d1ca756bd8
2 changed files with 2 additions and 2 deletions

View File

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