Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96361 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37063 invoked from network); 13 Oct 2016 22:56:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Oct 2016 22:56:00 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.21 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.21 mout.gmx.net Received: from [212.227.17.21] ([212.227.17.21:53920] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/19-41968-EF010085 for ; Thu, 13 Oct 2016 18:55:59 -0400 Received: from [192.168.2.103] ([217.82.231.87]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MK4fR-1bwCUh2S6n-001Sbg; Fri, 14 Oct 2016 00:55:54 +0200 To: Kalle Sommer Nielsen References: <64abfe29-6d8d-c186-6e52-47fa9309bdb6@gmx.de> Cc: PHP internals Message-ID: Date: Fri, 14 Oct 2016 00:56:32 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:0mfZltim9FGRGqEhIJYaOTkLTZgx4GOurUI0c9uipYPTTC5c0mF HNIKRgc7w41zUY8IvgZUyeIcfzd3+OpQGQ+D9c9OJJqvM0eT2R31iiCa1ORON7sQLjnpGEh Beoz58T/2BCq19XPd8hXd8EBqepqMOtTd+mLkFlO4AQnmiwW5DccBCyY3tkZ9Q2cPoCBZtZ ZhSfRjTibfOPklrgMuLCg== X-UI-Out-Filterresults: notjunk:1;V01:K0:lrHkTD+QJWY=:cab7WKQJwINU7ah0vPb6DB iyfRAqu+6Il5klRTdu26P+rX6iSgctG+ncPzkdlJm7VedTaqO0MDfTPm6vKmIHsGtGIXHNNFj Tvcza7HQtomiLvEt6L/McHOEVlRxipWDA/1FOEdbIYnNS73HWHAn7lZxHhciAL2iNWvwByK7I Wj/DoPjpZi6wXAH7KUxWWjAI3ywmVTDWXZEuqXf+afp57yT2PtDKgypiDPwg8uwXzI7F4ZOLE 4KMj3lI9HlBhLAwdY+H1KpnMTqf2efOYmwbDo87SxIG5WKCtm+nQJuRCBbylJcXSX5cyWiVqW /Lvx7qc2DJ8M/PSSZNmZDr4WSyDKKx/kwnY7sLRFvbFW0ByxtAkXhCMU6yuuWMYkBvHRmNgpg vvoDrA4UV09MNSz5LY2FfCDWBDku7zCReCOW7juXWhI6FrU+JPEHd0abbgGplULL6w6AJLfVJ 5okMoByWMNhvokRzUvvTty9lIbuBNA890Rw9ZWEaZSA1k0UnjKJl6GVWjBF+3wXz2qBXS3wdA ydyPLrPPDXFkpvDHu/i7IUIKhm8NpFu/HW5SmPDkITUBDx9lQ4dsuvPC/pGOpnpChri9Xei5Q YP4khf36g3oN3tjNISKucubMBM61ChFC8AzoLTP9gtf8/aGXDayUy6+MjjHBfVlzoF0ix+FZT i2xRg60ovcM8SDmcPMkO3CQOBbmJdXKjZ6LF75sU838CnKJAzg741E2H9LbNl1HJTXp6BrBLg D+hdxagsb/+hLKiUKJ1g48QyXQoceEHrXv0E0cAZ0e9/eu2ORVxkA+XZXE4f35YaeU/I2d1cL 25YDYIF Subject: Re: [PHP-DEV] ext/gd: Deprecate png2wbmp() and jpeg2wbmp() From: cmbecker69@gmx.de ("Christoph M. Becker") On 13.10.2016 at 22:28, Kalle Sommer Nielsen wrote: > 2016-10-13 19:03 GMT+02:00 Christoph M. Becker : > >> I suggest to deprecate png2wbmp() and jpeg2wbmp() as of PHP 7.2 and to >> remove the functions as of PHP 8.0. >> >> Both functions are very special for ext/gd; there are no other direct >> conversion functions, and even their names do not start with "image" >> like all other ext/gd functions, except gd_info(). Implementing a >> fallback in userland would be trivial (besides an issue with >> image2wbmp(), see ). >> Furthermore, WBMP supposedly isn't really important nowadays. > > +1, I even think that 7.3 should have them removed. Frankly, I think these functions should have been removed with PHP 7.0. However, that didn't happen, and so we'd have to adhere to our release process[1]: * x.y.z to x.y+1.z * API compatibility must be kept (userland) > Besides png2wbmp() > and jpeg2wbmp(), I'd like for you to add image2wbmp() to that list > too. Actually, I agree that we should remove this function. However, it is supposed to offer the easy fallback for the other functions, so keeping it would be helpful to provide efficient userland replacements, if it will be fixed[2]. Otherwise it's useless anyway, and we might consider to introduce something like imagefilter($im, IMG_FILTER_BLACK_AND_WHITE, $threshold) [1] [2] -- Christoph M. Becker