From f9f03ea92e8bf43232c807450466803cb0d2ea7c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 29 Jun 2020 13:27:30 -0400 Subject: [PATCH] Fix --- commands/edit-image/magik.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/edit-image/magik.js b/commands/edit-image/magik.js index b5331692..3c030180 100644 --- a/commands/edit-image/magik.js +++ b/commands/edit-image/magik.js @@ -32,6 +32,7 @@ module.exports = class MagikCommand extends Command { const magik = gm(body, 'magik.png'); magik.out('-liquid-rescale 75%x75%'); magik.implode(0.25); + magik.setFormat('png'); const attachment = await this.toBuffer(magik); if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.'); return msg.say({ files: [{ attachment, name: 'magik.png' }] });