Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96174 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13789 invoked from network); 28 Sep 2016 10:34:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Sep 2016 10:34:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.15 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.15 mout.gmx.net Received: from [212.227.15.15] ([212.227.15.15:51081] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/20-04248-0AC9BE75 for ; Wed, 28 Sep 2016 06:34:09 -0400 Received: from [192.168.2.103] ([79.243.115.246]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MO7ee-1bufpQ1KWC-005bf8; Wed, 28 Sep 2016 12:34:04 +0200 To: Felix Niklas , internals@lists.php.net References: Cc: Pierre Joye Message-ID: <9ca7ed2b-0b82-dfae-2d2a-aacf6913414b@gmx.de> Date: Wed, 28 Sep 2016 12:34:07 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:+Reu3an3iygFtfyZEQnV0qBLn3YBQTb39yRZLUHXMulS30gVIIe x6tS3ewN1R5QU53N7waa6jEjfJ/L7dhVhIe3RL7Sn2QYWld59SS9kgXZSetzZ/YPZiB/PqH OzaPVJhoTBXGR6KPHDkjqNHnFpt2A7SofunfCWzuyrdL3v32veMt4kXeT60Q3swZShpge5o 57zSVs1gTq/kxGfwEKU4g== X-UI-Out-Filterresults: notjunk:1;V01:K0:YWliPAR4Wpg=:FglsqeuO6csLDitgTx1A/6 +t8TpvL5H0qGMpsF3HYTftaxL29HMj3brea0VWWe8F3uaxDd4yat+0nssEvGlww2o+HxCXK8P qdxXgOr7CmCb7Nlj0W3SfV71WJL9mvlHntz2TG6B+Stuydv/nEgDHpAiRL1XAB7co2v/gD8Ru HK5T3kHCxMJm775jvYRC7JV6UU2FVcnJF1q+iiY9yu/DjfFzMLXz3C7HZtS+L59paQmQ3vuY/ DXeQWlT5XwB/4k+ATq8pABMcbj2H+CtFiZcfHecQ0eIdDmGVdKvhehANZ088FGc3ZXP1kqKuy 4BnhaFwgpxjo0jEaAGthBADJwRi58GsaBtuQa+3dOtcmAGsQohjwsaD0uy/p3sNsCiQBhNndE g6b/ld5aLIcbdTQs3dSTDBgLILgnKlgSkEO9ui+/WCbDre0s9sBLDBXvzefjkE1TroX01AwNe 1iWMjzvbXPwGgdlRoSj2XOGttfCQpeN+P0axqFNXlqZCbdxsatXooOV6AxCpvVcbxgbUTLsxY /AxCQjrqHbK75V/intJM1rkAWMpMCviZZxxHVLzai3bFLCUURDXuQfPi03NS9GXM980zErCjx S8wdBbfLHeh3usvvsuhKDQ7ByPD1Ustb6nouREBsAgYdS54A7+ayLRc/ORkoaf3A+chw5a7ZH jmBM7PIoXjjm1RLBmxZKB05PdjCam8lnlfZaI2K5+Nr12LrbkfdtOfufOcXu9JB/iFQ2avHlk WoyexMkXB5+V8LcgkPlOaFYgPyP4tVuvDGEQMbLqolTx11Gva063klC8r9F8ExtRJaYoV7oZb EWISeun Subject: Re: [RFC] add radius and sigma to IMG_FILTER_GAUSSIAN_BLUR From: cmbecker69@gmx.de ("Christoph M. Becker") On 28.09.2016 at 10:09, Felix Niklas wrote: > tl;dr: I’d like to add the parameters radius and sigma to the > $filtertype IMG_FILTER_GAUSSIAN_BLUR by switching the underlying > libgd method from (accepts no parameters) to > (accepts these parameters). I agree that gdImageCopyGaussianBlurred() should be preferred over gdImageGaussianBlur(), at least in theory (not sure if gdImageCopyGaussianBlurred() is sufficiently well (field-)tested). The question is whether this should be done by the PHP binding, or in libgd itself, where a comment for gdImageGaussianBlur() already states: | Future versions of this function may fall back to calling it | [gdImageCopyGaussianBlur()] instead of , causing | subtle changes so be warned. Either way, a user preferring the "classic" implementation could easily use gdImageConvolution() and imageconvolution(), respectively. Anyhow, even if we adjust the PHP binding only, the RFC process might not be necessary; instead a PR might be sufficient. -- Christoph M. Becker