note 70719 rejected from function.imagettftext by betz
| From: | betz@php.net | Date: | Wed, 25 Oct 2006 09:11:27 +0000 |
| Subject: | note 70719 rejected from function.imagettftext by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-119094@lists.php.net to get a copy of this message | ||
Note Submitter: mehdi_n1 at yahoo dot com
----
If the followed script runs (my system is Ubuntu, php5 and apache2):
<?php
header("Content-type: image/png");
$image=imagecreate(400,200);
$red=imagecolorallocate($image,255,0,0);
$blue=imagecolorallocate($image,0,0,255);
$font="verdana.ttf";
imageTTFtext($image, 50,0,20, 100, $blue,$font, "Test!");
imagepng($image);
?>
I get this error message:
'The image "http://localhost/***" cannot be
displayed,because it contians errors'
I've got gd package on my system.
Where is wrong?