From 5da403968553379a59b47c6ce0b6feba663dbc2e Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 22 Feb 2020 01:59:29 +0100 Subject: [PATCH] Changed text position --- commands/images/meme.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/images/meme.js b/commands/images/meme.js index 138332b..5b67076 100644 --- a/commands/images/meme.js +++ b/commands/images/meme.js @@ -85,8 +85,8 @@ class memeCommand extends Command { // Get the image size to calculate top and bottom text positions img.size(function(err, value) { // Set text position for top and bottom - const TOP_POS = Math.abs((value.height / 2) - PADDING) * -1; - const BOTTOM_POS = (value.height / 2) - PADDING; + const TOP_POS = Math.abs((value.height / 2) - PADDING) * -0.9; + const BOTTOM_POS = ((value.height / 2) - PADDING * 3); let FONT_SIZE = args.fontSize ? args.fontSize : (value.width / 10); // Write text on image using graphicsmagick