php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21832 GD only returns garbage characters
Submitted: 2003-01-22 22:07 UTC Modified: 2003-01-22 22:36 UTC
From: joaopaulo dot margon at softone dot com dot br Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.3.0 OS: windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: joaopaulo dot margon at softone dot com dot br
New email:
PHP Version: OS:

 

 [2003-01-22 22:07 UTC] joaopaulo dot margon at softone dot com dot 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?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-22 22:09 UTC] joaopaulo dot margon at softone dot com dot br
Sorry... I meant There is NO error reported in any of my log files!!
 [2003-01-22 22:36 UTC] sniper@php.net
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


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 11:01:32 2024 UTC