Docs: ensure alpha attribute is used for transparency

This commit is contained in:
Lovell Fuller
2017-01-13 21:24:57 +00:00
parent c6a28db8b1
commit 473055468a
3 changed files with 3 additions and 3 deletions

View File

@@ -200,7 +200,7 @@ const crop = function crop (crop) {
* @example
* sharp('input.gif')
* .resize(200, 300)
* .background({r: 0, g: 0, b: 0, a: 0})
* .background({r: 0, g: 0, b: 0, alpha: 0})
* .embed()
* .toFormat(sharp.format.webp)
* .toBuffer(function(err, outputBuffer) {