Apply correct forced output when chaining #1528

This commit is contained in:
Lovell Fuller
2019-01-01 18:40:09 +00:00
parent 813831acf0
commit 30ca424942
3 changed files with 17 additions and 1 deletions

View File

@@ -541,7 +541,9 @@ function tile (tile) {
* @returns {Sharp}
*/
function _updateFormatOut (formatOut, options) {
this.options.formatOut = (is.object(options) && options.force === false) ? 'input' : formatOut;
if (!(is.object(options) && options.force === false)) {
this.options.formatOut = formatOut;
}
return this;
}