php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79116 imagecolorclosesthwb parameters copy/pasta
Submitted: 2020-01-14 20:51 UTC Modified: 2020-01-14 21:39 UTC
From: moo at cowdontwantnospam dot co Assigned:
Status: Not a bug Package: GD related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
14 - 10 = ?
Subscribe to this entry?

 
 [2020-01-14 20:51 UTC] moo at cowdontwantnospam dot co
Description:
------------
---
From manual page: https://php.net/function.imagecolorclosesthwb
---

Based on the name and description, these parameters should be $hue, $white, $blackness or something similar, not RGB.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-14 21:39 UTC] requinix@php.net
-Status: Open +Status: Not a bug -Package: Documentation problem +Package: GD related
 [2020-01-14 21:39 UTC] requinix@php.net
Actually no, they are indeed supposed to be RGB.

cf. https://libgd.github.io/manuals/2.2.5/files/gd-c.html#gdImageColorClosestHWB
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 23:01:33 2024 UTC