Re: [GD-DEVEL] PNG filter support
| From: | Pierre | Date: | Wed, 17 Jan 2007 00:57:08 +0000 |
| Subject: | Re: [GD-DEVEL] PNG filter support | ||
| References: | 1 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-42@lists.php.net to get a copy of this message | ||
Hello Keith,
On 1/17/07, Keith Ito <kito@cs.stanford.edu> wrote:
Hi, My apologies in advance if this is the wrong list for feature requests.This list is the right place, we discuss GD development :-)
Anyhow, I'd like to request that GD expose an API allowing the caller to control the filter used when writing PNG images. There is a comment in gd_png.c saying this would be done in gdImagePngCtxEx(), but I suppose it was overlooked when that function was added.I already did it for the PHP bundled libgd. I only did not merge it yet into the official libgd, you can see the details here (using PHP): http://blog.thepimp.net/index.php/post/2006/01/27/35-imagepng-take-2 http://blog.thepimp.net/index.php/post/2005/12/12/29-what-s-new-in-gd-51x-2 I like to merge this addition in 2.1.0.
I have attached a patch that adds new functions to allow the caller to specify the PNG filter in calls to gdImagePngXXX. Please let me know if this is something you would consider accepting.I think your patch got droped by the list (use .txt). However please open an issue here: http://bugs.libgd.org So your patch will not get lost. I will check it and see what is the best solutions (will post both APIs additions to the list). Thanks, --Pierre