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),