Why no color in graphic?

From: Date: Tue, 31 Jul 2001 04:16:44 +0000
Subject: Why no color in graphic?
Groups: php.general 
Request: Send a blank email to php-general+get-60310@lists.php.net to get a copy of this message
I'm simply trying to resize an image, which is working - sortof. It resizes properly, but it loses it's color. Why, and how do I correct it? Thanks. <? $pic_dir = "_uimages"; $picture = "$pic_dir/mypic.jpg"; $size = GetImageSize($picture); $width = round($size[0]/4); $height = round($size[1]/4); $im = ImageCreate($width,$height); $im_o = ImageCreateFromJPEG($picture);; ImageCopyResized($im,$im_o,0,0,0,0,$width,$height,$size[0],$size[1]); imagedestroy($im_o); ImageJPEG($im); imagedestroy($im); ?>

« previous php.general (#60310) next »