|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7743 gd lib problems displaying dynamic images
Submitted: 2000-11-10 05:49 UTC Modified: 2000-11-10 06:05 UTC
From: paul dot d dot rowlands at delphiauto dot com Assigned:
Status: Closed Package: *Function Specific
PHP Version: 4.0.3pl1 OS: Windows NT 4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: paul dot d dot rowlands at delphiauto dot com
New email:
PHP Version: OS:


 [2000-11-10 05:49 UTC] paul dot d dot rowlands at delphiauto dot com
The following code does not work with php4.0.3p1 under windows NT.
It shows complete garbage text on the display.
However if you save the image to a png file and use <img src=$filename> tag it will work.

Header("Content-Type: image/png");
$im = ImageCreate(100,100);
$black = ImageColorAllocate($im,0,0,0);
$white = ImageColorAllocate($im,255,255,255);


if(ImageTypes() & IMG_PNG) {echo "PNG SUPPORTED";}
if(ImageTypes() & IMG_GIF) {echo "GIF SUPPORTED";}


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-10 06:05 UTC]
 remove the echo's and it will work ...
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Jun 20 07:01:25 2019 UTC