Decrease auto-scaling size

For better consistency with Android, autoscale images such that the
largest dimension is 1280. Related: #242
This commit is contained in:
lilia 2015-05-27 16:53:03 -07:00
parent a66c879426
commit 590deef063

View file

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