Docs: correct quality option in overlayWith example (#1325)

This commit is contained in:
Rodrigo Alviani
2018-08-08 04:42:18 -03:00
committed by Lovell Fuller
parent c14434f9e7
commit 23a4bc103e
2 changed files with 2 additions and 4 deletions

View File

@@ -40,8 +40,7 @@ sharp('input.png')
.overlayWith('overlay.png', { gravity: sharp.gravity.southeast } )
.sharpen()
.withMetadata()
.quality(90)
.webp()
.webp( { quality: 90 } )
.toBuffer()
.then(function(outputBuffer) {
// outputBuffer contains upside down, 300px wide, alpha channel flattened