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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: moo at cowdontwantnospam dot co
New email:
PHP Version: OS:

 

 [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: Mon Jun 03 23:01:30 2024 UTC