thanks its working fine now. ----- Original Message ----- From: "Hugh Danaher" <[EMAIL PROTECTED]> To: "Michael P. Carel" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php