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:
lilia 2015-03-04 16:07:02 -08:00
parent 567a48e82b
commit 0da04632f2

View file

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