#21832 [Opn->Bgs]: GD only returns garbage characters
| From: | sniper@php.net | Date: | Thu, 23 Jan 2003 04:36:03 +0000 |
| Subject: | #21832 [Opn->Bgs]: GD only returns garbage characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31028@lists.php.net to get a copy of this message | ||
ID: 21832
Updated by: sniper@php.net
Reported By: joaopaulo.margon@softone.com.br
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: windows 2000
PHP Version: 4.3.0
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
You really need to ask support questions on e.g.
php-general@lists.php.net
Previous Comments:
------------------------------------------------------------------------
[2003-01-22 22:09:01] joaopaulo.margon@softone.com.br
Sorry... I meant There is NO error reported in any of my log files!!
------------------------------------------------------------------------
[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