Better random avatars quality.
This commit is contained in:
parent
377c842c23
commit
1e27debb7d
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## ???
|
||||||
|
|
||||||
|
### Minor changes and fixes
|
||||||
|
|
||||||
|
* Builtin Prosody: better random avatars quality.
|
||||||
|
|
||||||
## 5.3.0
|
## 5.3.0
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
@ -28,6 +28,6 @@ for (let i = 1; i <= count; i++) {
|
|||||||
for (let j = 0; j < backgrounds.length; j++) {
|
for (let j = 0; j < backgrounds.length; j++) {
|
||||||
const out = i + (count * j)
|
const out = i + (count * j)
|
||||||
const background = backgrounds[j]
|
const background = backgrounds[j]
|
||||||
sharp(inputFile).flatten({background}).resize(120, 120).jpeg().toFile(path.join(outputDir, out.toString() + '.jpg'))
|
sharp(inputFile).flatten({background}).resize(120, 120).jpeg({quality: 95, mozjpeg: true}).toFile(path.join(outputDir, out.toString() + '.jpg'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user