mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Better validation and test coverage for background colours
This commit is contained in:
@@ -179,7 +179,7 @@ function blur (sigma) {
|
||||
function flatten (options) {
|
||||
this.options.flatten = is.bool(options) ? options : true;
|
||||
if (is.object(options)) {
|
||||
this._setColourOption('flattenBackground', options.background);
|
||||
this._setBackgroundColourOption('flattenBackground', options.background);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user