note 70719 added to function.imagettftext
| From: | mehdi_n1 at yahoo dot com | Date: | Wed, 25 Oct 2006 05:54:01 +0000 |
| Subject: | note 70719 added to function.imagettftext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119090@lists.php.net to get a copy of this message | ||
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?
----
Server IP: 194.109.193.119
Probable Submitter: 131.174.117.151
----
Manual Page -- http://www.php.net/manual/en/function.imagettftext.php
Edit -- https://master.php.net/note/edit/70719
Del: integrated -- https://master.php.net/note/delete/70719/integrated
Del: useless -- https://master.php.net/note/delete/70719/useless
Del: bad code -- https://master.php.net/note/delete/70719/bad+code
Del: spam -- https://master.php.net/note/delete/70719/spam
Del: non-english -- https://master.php.net/note/delete/70719/non-english
Del: in docs -- https://master.php.net/note/delete/70719/in+docs
Del: other reasons-- https://master.php.net/note/delete/70719
Reject -- https://master.php.net/note/reject/70719
Search -- https://master.php.net/manage/user-notes.php