Skip to content

Commit 2faadb8

Browse files
committed
Merge pull request aguidrevitch#11 from soomtong/master
update resize with cropping custom options : customArgs
2 parents 45ce0cb + b0d884e commit 2faadb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/uploadhandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ module.exports = function (options) {
109109
height: opts.height,
110110
srcPath: options.uploadDir() + '/' + fileInfo.name,
111111
dstPath: options.uploadDir() + '/' + version + '/' + fileInfo.name,
112-
customArgs: ['-auto-orient']
112+
customArgs: opts.customArgs || ['-auto-orient']
113113
}, finish);
114114
});
115115
}

0 commit comments

Comments
 (0)