From 4255a4f7ada39e318909c7905787daa9646885fe Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 15 Feb 2019 21:34:17 +0000 Subject: [PATCH] Fixes --- commands/image-edit/brazzers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/image-edit/brazzers.js b/commands/image-edit/brazzers.js index faf49e16..06f7b73c 100644 --- a/commands/image-edit/brazzers.js +++ b/commands/image-edit/brazzers.js @@ -35,9 +35,9 @@ module.exports = class BrazzersCommand extends Command { const ctx = canvas.getContext('2d'); ctx.drawImage(data, 0, 0); const ratio = base.width / base.height; - const width = data.width / 4; + const width = data.width / 3; const height = Math.round(width / ratio); - ctx.drawImage(base, data.width - width, data.height - height, width, height); + ctx.drawImage(base, 0, data.height - height, width, height); const attachment = canvas.toBuffer(); if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.'); return msg.say({ files: [{ attachment, name: 'brazzers.png' }] });