Re: Image_Text
| From: | Stefan Neufeind | Date: | Mon, 28 Jun 2004 11:59:31 +0000 |
| Subject: | Re: Image_Text | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13371@lists.php.net to get a copy of this message | ||
On Mon, 28 Jun 2004 at 13:47:08, Martin 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?
Good luck,
Stefan