How to find the Dominant color in image?

后端 未结 9 578
花落未央
花落未央 2020-12-07 13:34

i want to find the dominant color in image, how can i do it ?

it would be great if i can get this in HEX code (exm: #eeeeee)

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 14:09

    There is a PHP class developed that handles this, named color extract. However, know that doing this on the server side will require substantial system resources. You may wish to instead do this with canvas.

提交回复
热议问题