From 0da04632f2e25139b0dbf9926c0404e0f6de2f7d Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 4 Mar 2015 16:07:02 -0800 Subject: [PATCH] Scale large images even if they are small Previously we would not scale large resolution images with small file sizes, but in fact, both resolution and file size constraints should be enforced. --- js/views/file_input_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/views/file_input_view.js b/js/views/file_input_view.js index 0431c6c7..e0fcfd8e 100644 --- a/js/views/file_input_view.js +++ b/js/views/file_input_view.js @@ -47,7 +47,7 @@ var Whisper = Whisper || {}; }, autoScale: function(file) { - if (file.type.split('/')[0] !== 'image' || file.size/1024 < 420) { + if (file.type.split('/')[0] !== 'image') { // nothing to do return Promise.resolve(file); }