From ca5d3c02d3a3fa593c3f8e14030f9df8fe1d37bb Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 28 Feb 2021 09:19:50 -0500 Subject: [PATCH] Fix --- commands/edit-image/frame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image/frame.js b/commands/edit-image/frame.js index 6d8e7a52..6ee631ed 100644 --- a/commands/edit-image/frame.js +++ b/commands/edit-image/frame.js @@ -58,8 +58,8 @@ module.exports = class FrameCommand extends Command { } else { canvas = createCanvas(base.width, base.height); const ctx = canvas.getContext('2d'); - ctx.drawImage(base, 0, 0); ctx.drawImage(data, frame.xStart, frame.yStart, frame.xSize, frame.ySize); + ctx.drawImage(base, 0, 0); } const attachment = canvas.toBuffer(); if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.');