Merge pull request #4864 from pichalite/image-resize

fix resizeImage on upload
This commit is contained in:
Barış Soner Uşaklı
2016-07-19 10:08:35 +03:00
committed by GitHub

View File

@@ -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);
}