Max quality
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
35f94c58b7
commit
6e7b452792
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue