From 0cdaaa011b9716baf1ab8ef3938badb0632ccfd4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 21 Apr 2024 14:43:38 -0400 Subject: [PATCH] Fix --- commands/edit-image-text/tweet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image-text/tweet.js b/commands/edit-image-text/tweet.js index fcd809e4..06eab418 100644 --- a/commands/edit-image-text/tweet.js +++ b/commands/edit-image-text/tweet.js @@ -103,7 +103,7 @@ module.exports = class TweetCommand extends Command { imageCtx.quadraticCurveTo(x, y, x + radius, y); imageCtx.closePath(); imageCtx.clip(); - imageCtx.drawImage(imageData, 0, 0); + imageCtx.drawImage(imageData, 0, 0, imageWidth, imageHeight); ctx.drawImage(imageCanvas, 17, base1.height + linesLen, imageWidth, imageHeight); } const likes = randomRange(Math.ceil(userData.followers * 0.0015), Math.ceil(userData.followers * 0.002));