diff --git a/commands/edit-image/magik.js b/commands/edit-image/magik.js index f958a4d8..5a3ec743 100644 --- a/commands/edit-image/magik.js +++ b/commands/edit-image/magik.js @@ -29,13 +29,14 @@ module.exports = class MagikCommand extends Command { async run(msg, { image }) { try { const { body } = await request.get(image); - const magik = gm(body, 'magik.png'); - magik.out('-liquid-rescale 75%x75%'); + const magik = gm(body); + magik.out('-liquid-rescale'); + magik.out('50%x50%') magik.implode(0.25); - magik.setFormat('jpeg'); + 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.jpeg' }] }); + return msg.say({ files: [{ attachment, name: 'magik.png' }] }); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`); }