fix emoji sheet partial letterboxing
This commit is contained in:
parent
4151979e10
commit
95b6fddaa8
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ async function compositeMatrixEmojis(mxcs) {
|
||||||
/** @type {{info: sharp.OutputInfo, buffer: Buffer}} */
|
/** @type {{info: sharp.OutputInfo, buffer: Buffer}} */
|
||||||
const result = await new Promise((resolve, reject) => {
|
const result = await new Promise((resolve, reject) => {
|
||||||
const transformer = sharp()
|
const transformer = sharp()
|
||||||
.resize(SIZE, SIZE, {fit: "contain"})
|
.resize(SIZE, SIZE, {fit: "contain", background: {r: 0, g: 0, b: 0, alpha: 0}})
|
||||||
.png({compressionLevel: 0})
|
.png({compressionLevel: 0})
|
||||||
.toBuffer((err, buffer, info) => {
|
.toBuffer((err, buffer, info) => {
|
||||||
if (err) return reject(err)
|
if (err) return reject(err)
|
||||||
|
|
Loading…
Reference in a new issue