Fixed layers issue with sonic
This commit is contained in:
parent
903130dce1
commit
f0c9dd8c6d
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ exports.run = async (message, args) => {
|
|||
const file = `/tmp/${Math.random().toString(36).substring(2, 15)}.png`;
|
||||
const cleanedMessage = args.join(" ").replace(/&/g, "\\&").replace(/>/g, "\\>").replace(/</g, "\\<").replace(/"/g, "\\"").replace(/'/g, "\\'");
|
||||
await gm(474, 332).out("+size").background("none").gravity("Center").out("-pointsize", 72).out("-font", "Bitstream Vera Sans").out(`pango:<span foreground="white">${wrap(cleanedMessage, {width: 15, indent: ""})}</span>`).writePromise(file);
|
||||
const buffer = await gm(template).composite(file).gravity("Center").geometry("474x332+160+10").bufferPromise("png");
|
||||
const buffer = await gm(template).composite(file).gravity("Center").geometry("474x332+160+10").bufferPromise("png", "sonic");
|
||||
return message.channel.createMessage("", {
|
||||
file: buffer,
|
||||
name: "sonic.png"
|
||||
|
|
Loading…
Reference in a new issue