fix resizeImage on upload

v1.18.x
pichalite 9 years ago
parent a641df5f93
commit 2cd709418b

@ -104,7 +104,7 @@ function resizeImage(fileObj, callback) {
image.size(fullPath, next);
},
function (imageData, next) {
if (imageData.width < parseInt(meta.config.maximumImageWidth, 10) || 760) {
if (imageData.width < (parseInt(meta.config.maximumImageWidth, 10) || 760)) {
return callback(null, fileObj);
}

Loading…
Cancel
Save