From 6399a7bff5a485141073dc2fbe0bcc212cacda55 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 6 Apr 2021 10:31:13 -0400 Subject: [PATCH] Fix --- commands/info/emoji-image.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/info/emoji-image.js b/commands/info/emoji-image.js index 50328c35..9903a3ee 100644 --- a/commands/info/emoji-image.js +++ b/commands/info/emoji-image.js @@ -33,6 +33,10 @@ module.exports = class EmojiImageCommand extends Command { if (!parsed.length || !parsed[0].url) return msg.reply('This emoji is not yet supported.'); const { body } = await request.get(parsed[0].url); const emojiImage = await loadImage(body); + if (parsed[0].url.endsWith('svg')) { + emojiImage.width *= 4; + emojiImage.height *= 4; + } const canvas = createCanvas(512, 512); const ctx = canvas.getContext('2d'); ctx.drawImage(emojiImage, 0, 0, 512, 512);