This commit is contained in:
Dragon Fire
2024-04-10 20:09:31 -04:00
parent c5caf40e73
commit 7dd3f60001
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -33,8 +33,8 @@ module.exports = class EmojiImageCommand extends Command {
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;
emojiImage.width = 512;
emojiImage.height = 512;
}
const canvas = createCanvas(512, 512);
const ctx = canvas.getContext('2d');