On Mon, 23 Jul 2001, Andy wrote:
> 
> Ok, I put the script on my computer, and ran it. 
> The result of the script is attached as a PNG
> image.  Is this what it is supposed to look like?
> 
> On Mon, 23 Jul 2001, [EMAIL PROTECTED] wrote:
> > ID: 11976
> > User updated by: [EMAIL PROTECTED]
> > Reported By: [EMAIL PROTECTED]
> > Status: Feedback
> > Bug Type: GD related
> > Operating System: windows 98 SE
> > PHP Version: 4.0.6
> > New Comment:
> > 
> > My script should not draw a black image but a blue graph( blue rectangles).
> > Actually, with php4.0.6, my script draw a black square and with php4.0.5 my script 
>draw a graphics with blue rectangles.
> > It works with php4.0.6 only if I don't use the function image_copy_resized. So In 
>conclusion, I think that there is a problem with this function on php4.0.6 with W98 
>OS??
> > 
> > Previous Comments:
> > ------------------------------------------------------------------------
> > 
> > [2001-07-23 09:33:38] [EMAIL PROTECTED]
> > 
> > so what is the problem.  The image works now...  Just make sure
> > you set the header to "image/png" or whatever file type
> > the image is.
> > 
> > ------------------------------------------------------------------------
> > 
> > [2001-07-23 06:24:34] [EMAIL PROTECTED]
> > 
> > When I removed the header function (or set it to "text/html"), I have this on my 
>browser:
> > " PNG "??
> > If I keept "image/png" or "image/jpeg", I have a all-in black image??  
> > 
> > ------------------------------------------------------------------------
> > 
> > [2001-07-21 20:51:42] [EMAIL PROTECTED]
> > 
> > Works fine for me (I am using Linux.)  Try removing the
> > header function (or set it to "text/html") and see if there
> > are any errors/warnings that are corrupting the image.
> > 
> > ------------------------------------------------------------------------
> > 
> > [2001-07-09 10:04:13] [EMAIL PROTECTED]
> > 
> > I used this function in  a script with PHP 4.0.5. It works very well. I installed 
>PHP 4.0.6 and the script doesn't work anymore?
> > I found that it was this function who didn't work well.
> > 
> > Sorry about my English.
> > 
> > See my script:
> > <?
> >  Header("Content-type: image/png");
> >  $x=400;
> >  $y=400;
> >  $data=array (3, 1, 7, 2, 5, 4, 6);
> >  $im = imagecreate($x,$y);
> >  $black = ImageColorAllocate($im, 0,0,0);
> >  $blue = ImageColorAllocate($im, 0,36,135);
> >  $white = ImageColorAllocate($im, 255,255,255);
> >  ImageFilledRectangle($im,0,0,$x,$y,$white);
> >  imageline($im,0,50,$x,50,$black);
> >  imageline($im,$x-50,0,$x-50,$y,$black);
> >  for($i=0;$i<sizeof($data);$i++)
> >  {
> >          ImageFilledRectangle($im,$i*50+15,51,$i*50+40,51+$data[$i]*30,$blue);
> >  }
> >  $image=imagecreate(500,500);
> >  imagecopyresized($image,$im,0,0,0,0,400,400,400,400);
> >  Imagepng($image);
> > ?>
> > 
> > ------------------------------------------------------------------------
> > 
> > 
> > 
> > Edit this bug report at http://bugs.php.net/?id=11976&edit=1
> > 
> > 
> > -- 
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]

----------------------------------------
Content-Type: image/png; name="test.png"
Content-Transfer-Encoding: 8bit
Content-Description: 
----------------------------------------

----------------------------------------
Content-Type: text/plain; name="unnamed"
Content-Transfer-Encoding: 7bit
Content-Description: 
----------------------------------------

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to