From 97a00d5e70766b6d9a551fadb9eface9df4749d2 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 6 Apr 2021 10:22:17 -0400 Subject: [PATCH] Fix blurry emoji --- commands/edit-face/emoji-face.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/edit-face/emoji-face.js b/commands/edit-face/emoji-face.js index f98cc09d..ae5ddf76 100644 --- a/commands/edit-face/emoji-face.js +++ b/commands/edit-face/emoji-face.js @@ -52,6 +52,10 @@ module.exports = class EmojiFaceCommand extends Command { } const emojiData = await request.get(emojiURL); const emojiImg = await loadImage(emojiData.body); + if (emojiURL.endsWith('svg')) { + emojiImg.width *= 4; + emojiImg.height *= 4; + } const imgData = await request.get(image); try { const faces = await this.detect(imgData);