RE: [PHP] png image doesn't show

From: Date: Fri, 05 Jul 2002 10:52:01 +0000
Subject: RE: [PHP] png image doesn't show
Groups: php.general 
Request: Send a blank email to php-general+get-105612@lists.php.net to get a copy of this message
Hi, Do you output the right headers before you output the imagestream? Header("Content-type: image/png"); If this doesn't help you have to post your code (graphit.php) here so we can look at it. /Joakim > -----Original Message----- > From: hugh danaher [mailto:hdanaher@earthlink.net] > Sent: Friday, July 05, 2002 10:05 AM > To: php > Subject: [PHP] png image doesn't show > > > Hello all, > > I have been trying to modify the working of one of my pages > which prints a png graph. What I had was an included file > named "graphit.php" which creates a png file. I used the function > imagepng($image,'temp.png') to create an image and then used > <img src=temp.png> to have the image printed on the page. > This worked well enough when only one user (me) was using the > page, but I want more. In reading the imagepng() info in the > manual, it states that I can output the raw image stream to > the browser by leaving off the file name option. I've done > this, but get nada! How should this be done? > One of the notes (and it's in German) implies that I can call > "graphit.php" using something like > > <img src=graphit.php> to get the image output. > Unfortunately, I get nothing except the red X indicating a > missing image. > > Any and all help is greatly appreciated. > > Hugh > > > >

« previous php.general (#105612) next »