From cf707d4e54a26b4b3619521bd47c323277408189 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 19 Sep 2018 17:36:37 +0000 Subject: [PATCH] Fix --- commands/image-edit/sora-selfie.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/image-edit/sora-selfie.js b/commands/image-edit/sora-selfie.js index c57dc1a2..eb342b94 100644 --- a/commands/image-edit/sora-selfie.js +++ b/commands/image-edit/sora-selfie.js @@ -37,7 +37,7 @@ module.exports = class SoraSelfieCommand extends Command { ctx.fillRect(0, 0, base.width, base.height); const ratio = data.width / data.height; const width = Math.round(base.height * ratio); - ctx.drawImage(data, (base.width / 2) - (data.width / 2), 0, width, base.height); + ctx.drawImage(data, (base.width / 2) - (width / 2), 0, width, base.height); ctx.drawImage(base, 0, 0); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'sora-selfie.png' }] }); } catch (err) {