mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 01:09:21 +02:00
Fix headline.php: change image format to .png cause of black background
This commit is contained in:
parent
d0d0af289d
commit
b618084d50
@ -17,7 +17,7 @@ $font = getenv('GDFONTPATH') . DIRECTORY_SEPARATOR . 'martel.ttf';
|
|||||||
imagettftext($image, 18, 0, 4, 20, imagecolorallocate($image, 240, 209, 164), $font, $text);
|
imagettftext($image, 18, 0, 4, 20, imagecolorallocate($image, 240, 209, 164), $font, $text);
|
||||||
|
|
||||||
// header mime type
|
// header mime type
|
||||||
header('Content-type: image/gif');
|
header('Content-type: image/png');
|
||||||
|
|
||||||
// output image to browser
|
// output image to browser
|
||||||
imagegif($image);
|
imagepng($image);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user