Re: [GD-DEVEL] Gaussian Blur

[email protected] (Pierre Joye) Tue, 7 Jan 2014 06:37:31 +0100
Newsgroups php.gd.devel
Message-ID <CAEZPtU6vc+bnnnmzjnFLmZSkEzLaBnzqKfTm0qoV9Yrbc_VQ1g@mail.gmail.com>
--001a1133b05ed3dce304ef5ac562
Content-Type: text/plain; charset=UTF-8

Hi Chris,

On Dec 5, 2013 11:36 PM, "Chris Reuter" <[email protected]> wrote:
>
> Hi all,
>
> I've written a new Gaussian blur routine that is (IMHO) superior to
> the current one in gd_filter.c (i.e. it lets you select radius and
> sigma and splits the operation into two passes for efficiency).
>
> I'm planning on adding this to the trunk and would like turn the
> current gdImageGaussianBlur() into a front-end for my routine.  This
> introduces two potential changes:
>
>     1. The blurring effect won't be identical (although I'm pretty
>     sure I can get close enough)
>
>     2. The image will be converted to true color where it wasn't
>     before.
>
> Is this likely to be a problem?  Does someone out there depend on
> gdImageGaussianBlur() preserving the palette?

You can create a new function for it, name it using the name of the
algorithm you use for the new Gaussian filter. That solves all possible BC
issues :)

Thanks for your work!

Cheers,
Pierre

--001a1133b05ed3dce304ef5ac562--