Max quality
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2023-04-14 13:19:17 +02:00
parent 35f94c58b7
commit 6e7b452792
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ module.exports = Self => {
gm(srcFile)
.resize(maxWidth, maxHeight, '>')
.setFormat('png')
.quality(100)
.write(toFullSizePath, function(err) {
if (err) reject(err);
if (!err) resolve();
@ -98,6 +99,7 @@ module.exports = Self => {
gmInstance
.setFormat('png')
.quality(100)
.write(toSizePath, function(err) {
if (err) reject(err);
if (!err) resolve();