How to find the Dominant color in image?

后端 未结 9 579
花落未央
花落未央 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:07

    You should have a look at GD and Image Functions.

    There is a similar question on SO about extracting color information from an image with PHP, and it links to this class on github.

提交回复
热议问题