fix: improve avatar quality - 30003052-26035

This commit is contained in:
2023-03-13 06:55:49 +01:00
parent f8b977adcd
commit 34a270c8ad
+1 -1
View File
@@ -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);