Docs: Update deprecated overlayWith example (#1526)

This commit is contained in:
Pascal Temel
2018-12-30 21:44:36 +01:00
committed by Lovell Fuller
parent a54fe9f77c
commit 813831acf0
2 changed files with 2 additions and 4 deletions

View File

@@ -35,8 +35,7 @@ If the overlay image contains an alpha channel then composition with premultipli
sharp('input.png')
.rotate(180)
.resize(300)
.flatten()
.background('#ff6600')
.flatten( { background: '#ff6600' } )
.overlayWith('overlay.png', { gravity: sharp.gravity.southeast } )
.sharpen()
.withMetadata()