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:
parent
a66c879426
commit
590deef063
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue