From 2cd709418baa5fb40da5b18652c31b0b0ad7a479 Mon Sep 17 00:00:00 2001 From: pichalite Date: Tue, 19 Jul 2016 03:06:33 +0000 Subject: [PATCH] fix resizeImage on upload --- src/controllers/uploads.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/uploads.js b/src/controllers/uploads.js index 374152e388..11c75fd7f9 100644 --- a/src/controllers/uploads.js +++ b/src/controllers/uploads.js @@ -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); }