mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Docs: correct flatten example to use object instead of string (#2654)
This commit is contained in:
parent
16cf9f0ef2
commit
d1ca756bd8
@ -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();
|
||||
```
|
||||
|
||||
|
@ -272,7 +272,7 @@ function blur (sigma) {
|
||||
*
|
||||
* @example
|
||||
* await sharp(rgbaInput)
|
||||
* .flatten('#F0A703')
|
||||
* .flatten({background: '#F0A703' })
|
||||
* .toBuffer();
|
||||
*
|
||||
* @param {Object} [options]
|
||||
|
Loading…
x
Reference in New Issue
Block a user