From 590deef063953a85b325c8880a746372864a6ae7 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 27 May 2015 16:53:03 -0700 Subject: [PATCH] Decrease auto-scaling size For better consistency with Android, autoscale images such that the largest dimension is 1280. Related: #242 --- js/views/file_input_view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/views/file_input_view.js b/js/views/file_input_view.js index 43f5bb5c..17f0ea53 100644 --- a/js/views/file_input_view.js +++ b/js/views/file_input_view.js @@ -75,8 +75,8 @@ URL.revokeObjectURL(url); var maxSize = 420 * 1024; - var maxHeight = 1920; - var maxWidth = 1920; + var maxHeight = 1280; + var maxWidth = 1280; if (img.width <= maxWidth && img.height <= maxHeight && file.size <= maxSize) { resolve(file);