Ich möchte Text in ein Bild einfügen und bekomme immer einen error 500, offenbar scheint $white das Problem zu sein. Via Google habe ich das aber überall nur so gefunden, Hat evt. jemand einen Tip für mich was falsch ist?
PHP-Code:
<?php
header("Content-type: image/png");
$fullimg=imagecreate(1500,1500);
$black = ImageColorAllocate($fullimg, 0, 0, 0);
$white = ImageColorAllocate($fullimg, 255, 255, 255);
ImageTTFText ($fullimg, 30, 0, 200, 200, $white, "ariblk.ttf", "Test");
echo imagePNG($fullimg);
imagedestroy( $fullimg);
?>
Kommentar