mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Scale large images even if they are small
Previously we would not scale large resolution images with small file sizes, but in fact, both resolution and file size constraints should be enforced.
This commit is contained in:
@@ -47,7 +47,7 @@ var Whisper = Whisper || {};
|
||||
},
|
||||
|
||||
autoScale: function(file) {
|
||||
if (file.type.split('/')[0] !== 'image' || file.size/1024 < 420) {
|
||||
if (file.type.split('/')[0] !== 'image') {
|
||||
// nothing to do
|
||||
return Promise.resolve(file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user