[PHP] RE: color problems when resizing image with GD From: Andrew Chase (andrew.chase <email protected>)
Date: 11/29/01

Are you using GD 2.0.1 and PHP 4.0.6? If yes then try

$dst_img = ImageCreateTrueColor ($new_w,$new_h);

(http://www.php.net/manual/en/function.imagecreatetruecolor.php)

-Andy

> -----Original Message-----
> From: Michael Hall [mailto:mike <email protected>]
> Subject: color problems when resizing image with GD

> The problem I'm having is that the resized image drops huge chunks of the
> color pallette, creating what is basically a monochromatic image.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>