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

This commit is contained in:
slawkens 2025-04-22 13:45:35 +02:00
parent 4b9a7eaf85
commit 68170e42cd

View File

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