mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Docs: Update deprecated overlayWith example (#1526)
This commit is contained in:
parent
a54fe9f77c
commit
813831acf0
@ -35,8 +35,7 @@ If the overlay image contains an alpha channel then composition with premultipli
|
|||||||
sharp('input.png')
|
sharp('input.png')
|
||||||
.rotate(180)
|
.rotate(180)
|
||||||
.resize(300)
|
.resize(300)
|
||||||
.flatten()
|
.flatten( { background: '#ff6600' } )
|
||||||
.background('#ff6600')
|
|
||||||
.overlayWith('overlay.png', { gravity: sharp.gravity.southeast } )
|
.overlayWith('overlay.png', { gravity: sharp.gravity.southeast } )
|
||||||
.sharpen()
|
.sharpen()
|
||||||
.withMetadata()
|
.withMetadata()
|
||||||
|
@ -14,8 +14,7 @@ const is = require('./is');
|
|||||||
* sharp('input.png')
|
* sharp('input.png')
|
||||||
* .rotate(180)
|
* .rotate(180)
|
||||||
* .resize(300)
|
* .resize(300)
|
||||||
* .flatten()
|
* .flatten( { background: '#ff6600' } )
|
||||||
* .background('#ff6600')
|
|
||||||
* .overlayWith('overlay.png', { gravity: sharp.gravity.southeast } )
|
* .overlayWith('overlay.png', { gravity: sharp.gravity.southeast } )
|
||||||
* .sharpen()
|
* .sharpen()
|
||||||
* .withMetadata()
|
* .withMetadata()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user