From 2dfc23f8fa51335e23e65955a5a8a8cf7d0d3e55 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 21 Apr 2024 14:29:23 -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 cfb05979..97080ff9 100644 --- a/commands/edit-image-text/tweet.js +++ b/commands/edit-image-text/tweet.js @@ -84,7 +84,7 @@ module.exports = class TweetCommand extends Command { const imageHeightRatio = 740 / imageData.width; imageHeight = imageData.height * imageHeightRatio; canvas.height += imageHeight + 15; - ctx.fillRect(0, base1.height + linesLen, canvas.width, imageHeight + 15); + ctx.fillRect(0, base1.height, canvas.width, linesLen + imageHeight + 15); ctx.drawImage(imageData, 17, base1.height + linesLen, 740, imageHeight); } const likes = randomRange(Math.ceil(userData.followers * 0.0015), Math.ceil(userData.followers * 0.002));