Re: Image resize
| From: | Michael P. Carel | Date: | Thu, 13 Mar 2003 00:52:37 +0000 |
| Subject: | Re: Image resize | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139422@lists.php.net to get a copy of this message | ||
thanks its working fine now.
----- Original Message -----
From: "Hugh Danaher" <hdanaher@earthlink.net>
To: "Michael P. Carel" <mikecarel@teamglac.com>
Cc: <php-general@lists.php.net>
Sent: Thursday, March 13, 2003 9:09 AM
Subject: Re: [PHP] Image resize
> if your system suports the commands, try imagecreatetruecolor() instead of
> imagecreate(),
> and imagecopyresampled() instead of imagecopyresized(),
> hope this helps,
> Hugh
>
> ----- Original Message -----
> From: "Michael P. Carel" <mikecarel@teamglac.com>
> To: <php-general@lists.php.net>
> Sent: Wednesday, March 12, 2003 3:23 PM
> Subject: [PHP] Image resize
>
>
> > hi to all,
> >
> > I have a problem here in image resizing, after the image has been
resized
> > , the image has been discolorized. How can i recreate the image with
the
> > same resolution and color properties.
> >
> > Here's the sample code from my class file:
> >
> > $origPic = ImageCreateFromJpeg( $this -> iOrig[ 'tmp_name' ] );
> > $this -> iNew = ImageCreate($nWidth,$nHeight);
> > ImageCopyResized($this -> iNew, $origPic, 0, 0, 0, 0, $nWidth,
$nHeight,
> > $width, $height);
> >
> > Thanx in advance.
> >
> >
> >
> > Mike
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >