Re: [GD-DEVEL] save Grayscale PNG with gd
| From: | Pierre | Date: | Mon, 12 Nov 2007 10:06:00 +0000 |
| Subject: | Re: [GD-DEVEL] save Grayscale PNG with gd | ||
| References: | 1 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-277@lists.php.net to get a copy of this message | ||
Hi Dieter,
On Nov 12, 2007 10:45 AM, Dieter Guthmann <mailing-deg@bup-nbg.de> wrote:
> Hello,
>
> is it possible to save a GD-created image as grayscale-PNG-File?
Not yet, there is already a patch in our issues tracker to read
GrayScale PNG image (http://bugs.libgd.org/?do=details&task_id=88) but
I did not yet manage to add write support for PNG grayscale images.
The plan is to first add a grayscale internal format (8, 16 or 32,
with alpha or not) and then allow one to save it as a grayscale image
(png, tiff, tga for ex.). Alternatively you can use the grayscale
conversion function to convert the image to a faked grayscale image
and save it as a rgba PNG. It is not the perfect solution but it is
visually correct.
Best,
--Pierre