From 32138c7ef96de9b22afbcd7aae2f1b17d93a2cd5 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Mar 2024 21:53:52 -0400 Subject: [PATCH] Fix --- commands/edit-face/emoji-face.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-face/emoji-face.js b/commands/edit-face/emoji-face.js index c974b89d..d0b20edb 100644 --- a/commands/edit-face/emoji-face.js +++ b/commands/edit-face/emoji-face.js @@ -55,8 +55,8 @@ module.exports = class EmojiFaceCommand extends Command { const ctx = canvas.getContext('2d'); ctx.drawImage(base, 0, 0); for (const face of faces) { - const ratio = face.box.width / danny.width; - const height = danny.height * ratio; + const ratio = face.box.width / emojiImg.width; + const height = emojiImg.height * ratio; ctx.drawImage( emojiImg, face.box.xMin - (face.box.width * 0.2),