Add support for negating only non-alpha channels

Fixes #1035
This commit is contained in:
Espen Hovlandsdal
2021-07-22 23:27:27 +02:00
committed by Lovell Fuller
parent 21d1a7ca62
commit b7ddbe71f7
14 changed files with 122 additions and 6 deletions

View File

@@ -179,6 +179,7 @@ const Sharp = function (input, options) {
flatten: false,
flattenBackground: [0, 0, 0],
negate: false,
negateAlpha: true,
medianSize: 0,
blurSigma: 0,
sharpenSigma: 0,