From e2cb45c1dac35d3112556ad86cc0a5d8dc356e33 Mon Sep 17 00:00:00 2001 From: Bernhard Steindl Date: Wed, 25 Jan 2017 22:49:22 +0100 Subject: [PATCH] Push picture max edge to 2048 and max size to 4 MB Closes #1032 and catches up with Android --- js/views/file_input_view.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/views/file_input_view.js b/js/views/file_input_view.js index 520eb548..e6ad65c6 100644 --- a/js/views/file_input_view.js +++ b/js/views/file_input_view.js @@ -78,9 +78,9 @@ img.onload = function () { URL.revokeObjectURL(url); - var maxSize = 420 * 1024; - var maxHeight = 1280; - var maxWidth = 1280; + var maxSize = 4000 * 1024; + var maxHeight = 2048; + var maxWidth = 2048; if (img.width <= maxWidth && img.height <= maxHeight && file.size <= maxSize) { resolve(file); @@ -139,7 +139,7 @@ var blobType = file.type === 'image/gif' ? 'gif' : type; switch (blobType) { case 'image': - limitKb = 420; break; + limitKb = 4000; break; case 'gif': limitKb = 5000; break; case 'audio':