Image resize

From: Date: Wed, 12 Mar 2003 23:23:26 +0000
Subject: Image resize
Groups: php.general 
Request: Send a blank email to php-general+get-139415@lists.php.net to get a copy of this message
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

« previous php.general (#139415) next »