kaisellgren
01-30-2007, 03:33 PM
Hi,
When I use the following code to generate image with GD:
<?php
header("Content-type: image/png");
$image = imagecreate(256,50);
$color = imagecolorallocate($image,255,255,0);
$color2 = imagecolorallocate($image,255,0,0);
imagefill($image,0,0,$color2);
imagettftext($image,25,0,25,15,$color,"arial","test");
imagepng($image);
imagedestroy($image);
?>It works on my own server, but when I test it at ByetHost it does not work. It only outputs a red image without the text. For some reason the text is not outputted into the image. I asked support from ByetHost but they just keep saying the function imagettftext() works well.
Any help?
When I use the following code to generate image with GD:
<?php
header("Content-type: image/png");
$image = imagecreate(256,50);
$color = imagecolorallocate($image,255,255,0);
$color2 = imagecolorallocate($image,255,0,0);
imagefill($image,0,0,$color2);
imagettftext($image,25,0,25,15,$color,"arial","test");
imagepng($image);
imagedestroy($image);
?>It works on my own server, but when I test it at ByetHost it does not work. It only outputs a red image without the text. For some reason the text is not outputted into the image. I asked support from ByetHost but they just keep saying the function imagettftext() works well.
Any help?