mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 04:13:18 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user