From a6d9fe6547bfa990918c4d4c9b93f7bb5f0f3d39 Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Mon, 14 Nov 2022 00:54:51 +0100 Subject: [PATCH] Fixing obvious typo with the centering. --- lib/BurguillosInfo/Posts.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BurguillosInfo/Posts.pm b/lib/BurguillosInfo/Posts.pm index 4785d92..21face8 100644 --- a/lib/BurguillosInfo/Posts.pm +++ b/lib/BurguillosInfo/Posts.pm @@ -147,7 +147,7 @@ sub _AttachImageSVG { $width = $SVG_EMBEDDED_IMAGE_MAX_WIDTH; } - my $x = int(($SVG_EMBEDDED_IMAGE_MAX_WIDTH/2) - ($width / 2)); + my $x = int(($SVG_WIDTH/2) - ($width / 2)); my $y = 90; my ($output) = capture { system qw/file --mime-type/, $image;