From 7ab1b0bfa21187a7c81dc985f502eaf4d28d06e0 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 9 Jul 2020 20:42:55 -0400 Subject: [PATCH] Fix --- commands/edit-image/communist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image/communist.js b/commands/edit-image/communist.js index b72c3dac..a1d002be 100644 --- a/commands/edit-image/communist.js +++ b/commands/edit-image/communist.js @@ -46,7 +46,7 @@ module.exports = class CommunistCommand extends Command { drawImageWithTint(ctx, data, 'red', 0, 0, data.width, data.height); const { x, y, width, height } = centerImage(base, data); ctx.globalAlpha = 0.5; - ctx.drawImage(base, x + (width / 5), y + (height / 5), width * 0.9, height * 0.9); + ctx.drawImage(base, x + (width / 20), y + (height / 20), width * 0.9, height * 0.9); ctx.globalAlpha = 1; const attachment = canvas.toBuffer(); if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.');