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:
parent
567a48e82b
commit
0da04632f2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue