diff --git a/lib/uploadhandler.js b/lib/uploadhandler.js index 7f21ffc..53439ba 100644 --- a/lib/uploadhandler.js +++ b/lib/uploadhandler.js @@ -109,7 +109,7 @@ module.exports = function (options) { height: opts.height, srcPath: options.uploadDir() + '/' + fileInfo.name, dstPath: options.uploadDir() + '/' + version + '/' + fileInfo.name, - customArgs: ['-auto-orient'] + customArgs: opts.customArgs || ['-auto-orient'] }, finish); }); }