From b618084d50918539d9a70abd97e764137b966067 Mon Sep 17 00:00:00 2001 From: slawkens Date: Mon, 21 Apr 2025 23:43:57 +0200 Subject: [PATCH] Fix headline.php: change image format to .png cause of black background --- templates/tibiacom/headline.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/tibiacom/headline.php b/templates/tibiacom/headline.php index 4bf3f273..dd85d826 100644 --- a/templates/tibiacom/headline.php +++ b/templates/tibiacom/headline.php @@ -17,7 +17,7 @@ $font = getenv('GDFONTPATH') . DIRECTORY_SEPARATOR . 'martel.ttf'; imagettftext($image, 18, 0, 4, 20, imagecolorallocate($image, 240, 209, 164), $font, $text); // header mime type -header('Content-type: image/gif'); +header('Content-type: image/png'); // output image to browser -imagegif($image); +imagepng($image);