Get Image Color

slice
Package:
Get Image Color
Summary:
Get the most used colors in an image
Groups:
Graphics, PHP 5
Author:
Kalpesh Gamit
Description:
This class can be used to get the most used colors in an image.

It can open an image file in JPEG format and traverse its pixels to find which are the most used colors. It can skip a given number of analyzed pixels according to the granularity parameter.

The class returns an array of top most used colors up to a given limit of number or colors. The colors are returned in RGB hexadecimal format.


Powered by Gewgley