Image Color Extract
| Color | Color Code | Percentage | |
| 003090 | 0.308928571429 | ||
| 78d8ff | 0.158928571429 | ||
| 0060d8 | 0.130238095238 | ||
| a8f0ff | 0.104880952381 | ||
| 0048c0 | 0.0755952380952 | ||
| 30a8ff | 0.0389880952381 | ||
| a8f0f0 | 0.0356547619048 | ||
| 1878d8 | 0.0305357142857 | ||
| 001878 | 0.0291071428571 | ||
| 48c0ff | 0.0267261904762 |
The Image Color Extract PHP class pulls the most common colors out of an image file. The color values are in hexidecimal. You can try it out below. Upload a file or use the sample image provided. This class was originally written by Csongor Zalatnai. You can get his original version here: http://www.phpclasses.org/browse/package/3370.html.
I added added some enhancements to this class:
- Allow you to select the quantization delta. The smaller the delta the more accurate the color. This also increases the number of similar colors though.
- Added a filter to reduce brightness variants of the same color.
- Added a filter to reduce gradient variants ( useful for logos ).
- Changed color counts to percentages.
You can download my version here