mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Allow use of toBuffer+toFile w/ same instance #3044
This commit is contained in:
@@ -139,6 +139,7 @@ function toBuffer (options, callback) {
|
||||
} else if (this.options.resolveWithObject) {
|
||||
this.options.resolveWithObject = false;
|
||||
}
|
||||
this.options.fileOut = '';
|
||||
return this._pipeline(is.fn(options) ? options : callback);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user