Skip to content

Commit b0d884e

Browse files
committed
Update lib/uploadhandler.js
update resize with cropping custom options : customArgs ex) thumbnail:{     width:80,     height:"80^",     customArgs: [         "-gravity", "center",         "-extent", "80x80"     ] }
1 parent ffa1758 commit b0d884e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/uploadhandler.js

+1-1
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)