From 4f05e87335af43b0156a2355face8fc90e50ab4c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 28 Apr 2024 15:07:23 -0400 Subject: [PATCH] Fix --- commands/edit-image-text/tweet.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/edit-image-text/tweet.js b/commands/edit-image-text/tweet.js index fbfc133d..2452964a 100644 --- a/commands/edit-image-text/tweet.js +++ b/commands/edit-image-text/tweet.js @@ -122,12 +122,12 @@ module.exports = class TweetCommand extends Command { if (userData.label) { const labelData = await request.get(userData.label); const labelImg = await loadImage(labelData.body); - const labelCanvas = createCanvas(20, 20); + const labelCanvas = createCanvas(25, 25); const labelCtx = labelCanvas.getContext('2d'); - this.roundedPath(labelCtx, 5, 0, 0, 20, 20); + this.roundedPath(labelCtx, 3, 5, 5, 20, 20); labelCtx.clip(); - labelCtx.drawImage(labelImg, 0, 0, 20, 20); - this.roundedPath(labelCtx, 5, 0, 0, 20, 20); + labelCtx.drawImage(labelImg, 5, 5, 20, 20); + this.roundedPath(labelCtx, 3, 0, 0, 25, 25); labelCtx.clip(); labelCtx.strokeStyle = '#303336'; labelCtx.lineWidth = 5;