> I'm simply trying to resize an image, which is working - sortof. It
> 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/4);
> $height = round($size/4);
> $im = ImageCreate($width,$height);
> $im_o = ImageCreateFromJPEG($picture);;
Your $im does not have the same pallette of colors as the original...
You'll need to copy over the pallette first somehow.
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]