RE: color problems when resizing image with GD
| From: | Andrew Chase | Date: | Thu, 29 Nov 2001 19:28:42 +0000 |
| Subject: | RE: color problems when resizing image with GD | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76082@lists.php.net to get a copy of this message | ||
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@pfbiz.com]
> 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.