Login   Register  
PHP Classes

Get Image Color: Get the most used colors in an image

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-08-02 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 943 All time: 3,548 This week: 1,547Up
Version License PHP version Categories  
getimagecolor 1.0GNU General Public Lice...5.0PHP 5, Graphics
Description Author  

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.

Picture of Kalpesh Gamit
Name: Kalpesh Gamit <contact>
Classes: 2 packages by
Country: India India
Age: 30
All time rank: 1887119 in India India
Week rank: 1721 Up113 in India India Up

  • get_image_color_slice
  • result_of_get_image_color.png
  Files folder image Files  
File Role Description
Plain text file getImageColor Class PHP getImageColor

 Version Control Unique User Downloads Download Rankings  
 0%Total:943All time:3,548
 This week:0This week:1,547Up