mirror of
https://github.com/lovell/sharp.git
synced 2025-07-12 20:10:13 +02:00
Docs: correct quality option in overlayWith example (#1325)
This commit is contained in:
parent
c14434f9e7
commit
23a4bc103e
@ -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
|
||||
|
@ -19,8 +19,7 @@ const is = require('./is');
|
||||
* .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
|
||||
|
Loading…
x
Reference in New Issue
Block a user