Re: Image_Text
| From: | Tobias Schlitt | Date: | Mon, 28 Jun 2004 16:23:30 +0000 |
| Subject: | Re: Image_Text | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13376@lists.php.net to get a copy of this message | ||
Hi Stefan Neufeind! You wrote:
>> trying to run the Image_Text example-scripts ends in the following
>> errors:
>>
>> Warning : imagecolorallocate(): supplied argument is not a valid Image
>> resource in /usr/home/mabraham.de/htdocs/misc/example.php on line 93
>>
>> Warning : imagefilledellipse(): supplied argument is not a valid Image
>> resource in /usr/home/mabraham.de/htdocs/misc/example.php on line 95
>>
>> Warning : imagepng(): supplied argument is not a valid Image resource
>> in /usr/local/share/pear/Image/Text.php on line 1004
> I don't yet have a quick idea, since you seem to have GD-support and
> FreeType
> already present in ysour PHP. Could you maybe try to track down what
> resource
> is supplied in the lines indicated by this error? I suppose it's a
> PEAR_Error,
> so dumping the error-message might give a clue.
> Are you sure you are correctly referencing an existing TTF-fontfile in the
> example?
Check all method calls using a var_dump(). Any of them will show you the error.
Regards,
Toby
--
Tobias Schlitt GPG Key: 0xA6529579
a passion for php http://www.schlitt.info
Like to say "thank you"? - http://pear.php.net/wishlist.php/toby