Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102034 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41218 invoked from network); 13 Apr 2018 04:58:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2018 04:58:29 -0000 Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.180 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 74.125.82.180 mail-ot0-f180.google.com Received: from [74.125.82.180] ([74.125.82.180:45116] helo=mail-ot0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/5B-36099-3F830DA5 for ; Fri, 13 Apr 2018 00:58:27 -0400 Received: by mail-ot0-f180.google.com with SMTP id v6-v6so8561744otj.12 for ; Thu, 12 Apr 2018 21:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=s+nwOzPNqjRJ3kzub5HWtYjDECKAKHUTGKGNuhqjpAU=; b=Y2v8EC1Y+WZKUmtMl2EtnP+LTDCJqOznfdgzB5PFKQgWyvWQgTlqExBE0DueoJ/Jw/ yst7E+Qrk57vzDVH4ZyVo72KZgL0UL6W09eNH8abIr2g62mXZdtdtwW5U6vQu7z/c+OU YuX4ZxbnIJkHw7SdOycdbN5a56JX2jeGhxwb0fa6sAbzEw1eaC+4Tr8hm1thchUuGiDd HwWEdlV5DVtSttxfDuDQzIou0v1jJEYVLqeN85OrTKV7Me7+rpmG1Xk8l7Aohm/HIgbf dDUsBijLvOh6Nt1nWqpnLKKrmhOBB8IZ8Db37/Gn+l6E/dduGKwUVi5HPGNCa/5u2VaL GCUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=s+nwOzPNqjRJ3kzub5HWtYjDECKAKHUTGKGNuhqjpAU=; b=nQ+k4leNgr9aZVuWsqKXPfwNflpwaZX7FaxdIT0mVPC2pSe2mRzVGPMkk+GM4Bk7c5 iskAmlo7xdpyp5sB+tlp11rhmz++8AUOhk2JyGOif2tvMPnYWu4+dY09GD+PH27DHRYe NRsyfPfb+tlCLSZICLxAnRKiEhppjriEmbC+RFjRCkGAMBkzz6pkLKmrxS9T8YdRIU/M mNRkRPOOMKtFCWEuxZ3hBbD6xc/cCqFhFJGOybkDUuBAEujWJCp7X4bXZ9H9eU26cfMM gPa+iWW1yQYzGN3mvhnZ2OtGL9UVcBWE11s40bA1LnBceqZRZzfeHOYCIr0cNQuakVQo 1QZg== X-Gm-Message-State: ALQs6tB+NQsl5rkn23K4KprF4mnou/OVVUDNEmFPtzDqeLT8U82zx/W8 AJH44uQJD8Q9+6QInl2C48K5Ga12Bri9P4M3CyA= X-Google-Smtp-Source: AIpwx4/6dtr+WXa9ztnowbNhCBKBpRzqb0fZEYIYnqH0p1daoQGtnGBUDWDI3QkzI/cfSc9QX+SPu4iKCVSd7qv22TE= X-Received: by 2002:a9d:153a:: with SMTP id u55-v6mr2440491otf.208.1523595504300; Thu, 12 Apr 2018 21:58:24 -0700 (PDT) MIME-Version: 1.0 Sender: kalle.php@gmail.com Received: by 10.74.160.25 with HTTP; Thu, 12 Apr 2018 21:58:23 -0700 (PDT) In-Reply-To: <741f89af-a199-6501-17cc-f1e10a858bb2@gmx.de> References: <741f89af-a199-6501-17cc-f1e10a858bb2@gmx.de> Date: Fri, 13 Apr 2018 06:58:23 +0200 X-Google-Sender-Auth: vjctbyIy-Dro_JTInrdJ64UzsPU Message-ID: To: "Christoph M. Becker" Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] What to do with image2wbmp()? From: kalle@php.net (Kalle Sommer Nielsen) Hi 2018-04-05 14:04 GMT+02:00 Christoph M. Becker : > Hi everybody! > > is still unresolved, and I'm not sure how > to resolve it. > > TL;DR: the $threshold parameter of image2wbmp() is supposed to specify a > *brightness threshold* for the required black and white conversion of > the image. However, as of PHP 5.0.0 it is actually interpreted as the > *foreground color*; all other colors are treated as background. This > makes image2wbmp() basically identical to imagewbmp(). > > Any suggestions on how to proceed here? If thats the case that its basically identical, then a PHP_DEP_FE should be sufficient for image2wbmp() and a removal in future version, given its a rarely used function and migration is easy, even 7.4 could potentially be fine for removal. -- regards, Kalle Sommer Nielsen kalle@php.net