Re: Problems with PHP+GD 2

From: Date: Tue, 26 Sep 2000 22:03:53 +0000
Subject: Re: Problems with PHP+GD 2
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17648@lists.php.net to get a copy of this message
Hi Danillo, While we wait for a informed response: - (see below) Danillo Palacio Braga wrote: > > Ok.. more details... > > I am using gd1.8.3, libpng1.0.7 and zlib1.1.3 and I am trying to work > with .png files. > Here it is an example code that didnt work with me. > > <?php > $pic=ImageCreate(60,60) > $col1=ImageColorAllocate($pic,200,200,200); > $col2=ImageColorAllocate($pic,0,0,255); > ImageFilledRectangle($pic,1,1,10,10,$col2); At least by here, or at the beginning of script your suppose to have something like: header("Content-type: image/png"); > ImagePNG($pic,"img_test.png"); > ImageDestroy($pic); > ?> > > Thanks.... >

« previous php.general (#17648) next »