I have a strange problem. First off all i had probs with the "Cannot open/load font" problem, but i solved that one already. Now i'am confrontated with a new one which is even stranger.
Here is the code:
<?php
Header("Content-type: image/jpeg");
$plaatje = ImageCreateFromJpeg($file);
$rood = imagecolorclosest($plaatje, 255, 0, 0);
$text = "Verkocht";
$font = "/home/klanten/nedvzeeg/public_html/temp/verdana.ttf";
ImageTTFText($plaatje, 16, 0, 10, 10, $rood, $font, $text);
Imagejpeg($plaatje);
ImageDestroy($plaatje);
?>
Seems not so difficult, but when i remove the header (to see the error) i see the next one:
Warning: Could not read font in /home/klanten/nedvzeeg/public_html/temp/transformjpg2.php on line 24
I tried several fonts, but every time the same error. Maybe something wrong with the fonts? Or what am i doing wrong?😕 😕
Bah, binary mode for .ttf.. DOH