fix: improve avatar quality - 30003052-26035
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ function resizeAndSave(buf, jidhash) {
|
||||
outFileName = outputDir + jidhash + '-' + parseInt(reso) + '.jpg';
|
||||
}
|
||||
console.log("using reso: ", reso);
|
||||
gm(buf, 'image.png').resize(reso, reso, '!').write(outFileName, function (err){
|
||||
gm(buf, 'image.png').quality(90).resize(reso, reso, '!').write(outFileName, function (err){
|
||||
if (err) {
|
||||
console.log("using reso: ", reso);
|
||||
console.log("err: ", err);
|
||||
|
||||
Reference in New Issue
Block a user