For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > June 2004 > Re: [PEAR] Image_Text









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Image_Text
Stefan Neufeind

2004-06-28, 8:58 am

On Mon, 28 Jun 2004 at 13:47:08, Martin wrote:

> trying to run the Image_Text example-scripts ends in the following=20
> errors:
>=20
> Warning : imagecolorallocate(): supplied argument is not a valid Image=

=20
> resource in /usr/home/mabraham.de/htdocs/misc/example.php on line 93
>=20
> Warning : imagefilledellipse(): supplied argument is not a valid Image=

=20
> resource in /usr/home/mabraham.de/htdocs/misc/example.php on line 95
>=20
> Warning : imagepng(): supplied argument is not a valid Image resource=20
> 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 FreeTy=
pe=20
already present in ysour PHP. Could you maybe try to track down what resour=
ce=20
is supplied in the lines indicated by this error? I suppose it's a PEAR_Err=
or,=20
so dumping the error-message might give a clue.

Are you sure you are correctly referencing an existing TTF-fontfile in the=
=20
example?


Good luck,
Stefan
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com