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