#21832 [Opn]: GD only returns garbage characters
| From: | joaopaulo dot margon at softone dot com dot br | Date: | Thu, 23 Jan 2003 04:09:02 +0000 |
| Subject: | #21832 [Opn]: GD only returns garbage characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31026@lists.php.net to get a copy of this message | ||
ID: 21832
User updated by: joaopaulo.margon@softone.com.br
Reported By: joaopaulo.margon@softone.com.br
Status: Open
Bug Type: GD related
Operating System: windows 2000
PHP Version: 4.3.0
New Comment:
Sorry... I meant There is NO error reported in any of my log files!!
Previous Comments:
------------------------------------------------------------------------
[2003-01-22 22:07:31] joaopaulo.margon@softone.com.br
All php exemples on using GD library returns no image but trash
characters like
<?php
header ("Content-type: image/png");
$im = @imagecreate (50, 100)
or die ("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate ($im, 255, 255, 255);
$text_color = imagecolorallocate ($im, 233, 14, 91);
imagestring ($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng ($im);
?>
returns
PNG IHDR2dþ&ñPLTEÿÿÿé[Ë£
there is error reported in my log.
I'm using Apache 1.3.26, PHP 4.3, GD 2 and windows 2000.
my php.ini is configured ok, the phpinfo() returns that GD is installed
and jpeg, png and stuff are supported.
Could this be just a misconfiguration? Or something else?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21832&edit=1