mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 15:25:07 +01:00
Apply correct forced output when chaining #1528
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user