Ik heb dit scriptje :
<?
header("Content-type: image/png"); // define the usage of a PNG image
$pic = ImageCreate(150, 75); // create an empty 150x75 image
$black = ImageColorAllocate($pic, 0, 0, 0); // defines RGB black
$white = ImageColorAllocate($pic, 255, 255, 255); // defines RGB white
ImageRectangle($pic, 0, 0, 100, 75, $black); // Draw a rectangle in the empty image,
// covering the complete image and fill it with black
ImageTTFText($pic, 32, 0, 10, 50, $white, "/fonts/ln.ttf", "Mitch"); // Write Mitch on it,
// size 32 px, rotation 0, x: 10 y: 50 color: white
ImagePNG($pic); // complete the image
ImageDestroy($pic); // clean up the memory
?>
Zonder de regel ImageTTFText(...) werkt het wel en krijg ik een zwart 150x75 plaatje te zien, maar met die regel erbij zegt php: The image "/....../PIC.php” cannot be displayed, because it contains errors.
Wat is er dan fout? http://sh4d3h.ath.cx/phpinfo.php voor PHPinfo() ... bvd :)
1.094 views