From f9405c4d105d0b8a744bdb0547e60c161739fcfa Mon Sep 17 00:00:00 2001 From: Sergiotarxz Date: Fri, 25 Aug 2023 18:13:28 +0200 Subject: [PATCH] Adding transparency to the generated logo in the preview. --- lib/BurguillosInfo/Preview.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BurguillosInfo/Preview.pm b/lib/BurguillosInfo/Preview.pm index f1407a0..84ccf8f 100644 --- a/lib/BurguillosInfo/Preview.pm +++ b/lib/BurguillosInfo/Preview.pm @@ -38,7 +38,7 @@ sub _ToPng($self, $image) { my $new_image = $image =~ s/\.\w+$/.generated.png/r; say $new_image; if (!-e $new_image) { - system 'convert', "$image", "$new_image"; + system 'convert', '-background', 'none', "$image", "$new_image"; } $image = $new_image; }