PHP Classes

PHP Color Picker: Extract the main colors of a given image file

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 241 All time: 8,020 This week: 206Up
Version License PHP version Categories
color-extractor 1.0GNU General Publi...5.0PHP 5, Graphics
Description 

Author

This class can extract the main colors of a given image file.

It can read an image in the GIF, JPEG or PNG format and extracts the list of colors that are used in the pixels of the image.

The class takes in account a similarity factor to consider very similar colors as if they are the same.

It returns an array with the colors used in the picture sorted by the frequency of the pixels that use each color.

Picture of Sazan Dauti
Name: Sazan Dauti <contact>
Classes: 3 packages by
Country: United States United States
Age: 28
All time rank: 2811389 in United States United States
Week rank: 295 Up34 in United States United States Up

  Files folder image Files  
File Role Description
Plain text file colorextractor.class.php Class This is the class file of PHP Color Extractor
Accessible without login Plain text file example.php Example This is an example of how PHP Color Extractor can be used
Accessible without login Plain text file LICENSE Lic. The license

 Version Control Unique User Downloads Download Rankings  
 0%
Total:241
This week:0
All time:8,020
This week:206Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1663
 
That was extremley good !
8 years ago (Ali Bahaari)
70%StarStarStarStar