RE: [PHP-WIN] Re: Image Creation Error
| From: | Mikey | Date: | Fri, 17 Jan 2003 00:12:03 +0000 |
| Subject: | RE: [PHP-WIN] Re: Image Creation Error | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17919@lists.php.net to get a copy of this message | ||
Oops - that should be php_gd2.dll
> -----Original Message-----
> From: Mikey [mailto:mikey@splatted.net]
> Sent: 17 January 2003 00:11
> To: php-windows@lists.php.net
> Subject: RE: [PHP-WIN] Re: Image Creation Error
>
>
> Have either of you tried using GD v2 (php_gdf2.dll)?
>
> regards,
>
> Mikey
>
> > -----Original Message-----
> > From: Pat Johnston [mailto:patj@ncable.net.au]
> > Sent: 17 January 2003 00:06
> > To: php-windows@lists.php.net
> > Subject: [PHP-WIN] Re: Image Creation Error
> >
> >
> > Hi Ed
> > I have a similar probelm with resizing and cannot work it out.
> My phpinfo
> > (ver 4.3) says jpeg support enabled and put php_gd.dll in the same
> > directories as you.
> >
> > My code is:
> >
> > $imagesrc = ImageCreateFromJpeg($image);
> > $imagedst = ImageCreate($im_width,$im_height);
> > ImageCopyResized($imagedst, $imagesrc, 0, 0, 0, 0,
> > $im_width,$im_height,$width,$height);
> > header("Content-type: image/jpeg");
> > ImageJpeg($imagedst, '', -1);
> > ImageDestroy($imagesrc);
> > ImageDestroy($imagedst);
> >
> > Any help on appreciated..
> > Pat
> >
> >
> > "Ed" <art_drennan@yahoo.com> wrote in message
> > news:20030116171840.85766.qmail@pb1.pair.com...
> > > I'm running PHP 4.3 and W2k with IIS 5.0. I have enabled
> php_gd and it
> > does
> > > show up when I do a phpinfo. The php_gd.dll is in the winnt/system32
> > > directory and it's in the extensions directory (I've also tried it in
> > almost
> > > every other directory too) and I get
> > > this error message:
> > >
> > > Fatal error: Call to undefined function: imagecreate() in
> > > C:\Inetpub\wwwroot\template\index.php on line 4
> > >
> > > Here's the code:
> > > <?php
> > >
> > > header("Content-type: image/png");
> > > $im = imagecreate(100, 20);
> > >
> > > $red = imagecolorallocate($im, 255, 0, 0);
> > > $white = imagecolorallocate($im, 255, 255, 255);
> > >
> > > $ImageString($im, 3, 3, 3, "Home", $white);
> > > imagepng($im);
> > >
> > > ImagegDestroy($im);
> > >
> > > ?>
> > > Any help would be appreciated.
> > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >