From 31189cb60511b65b0f3a40a378650f666bbeeb92 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 21 Feb 2021 12:48:53 -0500 Subject: [PATCH] Fix --- commands/edit-image/pet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image/pet.js b/commands/edit-image/pet.js index f731c409..5648872a 100644 --- a/commands/edit-image/pet.js +++ b/commands/edit-image/pet.js @@ -48,7 +48,7 @@ module.exports = class PetCommand extends Command { const frameID = `frame_${i.toString().padStart(2, '0')}.png`; const frame = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'pet', frameID)); const { x, y, width, height } = centerImagePart(data, 75, 75, 27, 38); - ctx.drawImage(data, x - squish, y + squish, width + squish, height - squish); + ctx.drawImage(data, x - (squish / 2), y + squish, width + squish, height - squish); ctx.drawImage(frame, 0, 0); encoder.addFrame(ctx); ctx.clearRect(0, 0, canvas.width, canvas.height);