From 68170e42cd8fac43c55654ba595f09425618f26e Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 22 Apr 2025 13:45:35 +0200 Subject: [PATCH] Fix headline.php: change image format to .png cause of black background --- templates/tibiacom/headline.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/tibiacom/headline.php b/templates/tibiacom/headline.php index 039fe9d8..2bb5529a 100644 --- a/templates/tibiacom/headline.php +++ b/templates/tibiacom/headline.php @@ -31,12 +31,12 @@ if(!@file_exists($page_file)) imagettftext($image, 18, 0, 4, 20, imagecolorallocate($image, 240, 209, 164), $font, $_GET['t']); // header mime type - header('Content-type: image/gif'); + header('Content-type: image/png'); // save image - imagegif($image/*, $file*/); + imagepng($image/*, $file*/); //} // output image -//header('Content-type: image/gif'); +//header('Content-type: image/png'); //readfile($file);