From d5d6abfa357bb31bc089cd1dba52b29756307e2f Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 6 Mar 2021 12:50:49 -0500 Subject: [PATCH] Fix --- commands/edit-image/eyes.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/edit-image/eyes.js b/commands/edit-image/eyes.js index 846c94e2..9a356572 100644 --- a/commands/edit-image/eyes.js +++ b/commands/edit-image/eyes.js @@ -52,8 +52,8 @@ module.exports = class EyesCommand extends Command { const leftHeight = eyes.height * leftRatio; ctx.drawImage( eyes, - landmarks.left_eye_left_corner.x - leftWidth, - landmarks.left_eye_left_corner.y - (leftHeight / 2) - leftHeight, + landmarks.left_eye_left_corner.x - (leftWidth / 2), + landmarks.left_eye_left_corner.y - (leftHeight / 2) - (leftHeight / 2), leftWidth * 2, leftHeight * 2 ); @@ -62,8 +62,8 @@ module.exports = class EyesCommand extends Command { const rightHeight = eyes.height * rightRatio; ctx.drawImage( eyes, - landmarks.right_eye_left_corner.x - rightWidth, - landmarks.right_eye_left_corner.y - (rightHeight / 2) - rightHeight, + landmarks.right_eye_left_corner.x - (rightWidth / 2), + landmarks.right_eye_left_corner.y - (rightHeight / 2) - (rightHeight / 2), rightWidth * 2, rightHeight * 2 );