I am currently trying to create a dynamic image that displays my latest blog post on the image so I can distribute it across other forums.
I would like to use the font arial but can't seem to get it to work under Frihost. When I place the font in, it gives me this error:
Heres the current script I am using:
I would like to use the font arial but can't seem to get it to work under Frihost. When I place the font in, it gives me this error:
| Quote: |
| The image “http://gwplus.net/signature2.png/index.php” cannot be displayed, because it contains errors. |
Heres the current script I am using:
| Code: |
|
$myImage = ImageCreateFromPng("garions_blog.png"); $white = imagecolorallocate($myImage, 255, 255, 255); $string = "What I wan't will go here"; imagettftext($myImage, 10, 0, 85, 85, $white, "arial.ttf", $string); header ("content-type: image/png"); ImagePng($myImage); imagedestroy($myImage); |
