Fix headline.php: change image format to .png cause of black background

This commit is contained in:
slawkens 2025-04-21 23:43:57 +02:00
parent d0d0af289d
commit b618084d50

View File

@ -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);