Going down the path that leads to more useless stats for my friend's-and-personal photo server software, I wanted to extract the most prominent color of an image. Googling, I finally found Pieroxy Color Finder and decided to port the script for PHP.
It is now available on github. If you have any question or feed backs, you can contact me from there.
Have fun and remember there are never enough useless stats !
It is very Simple to use, just include the ColorExtract.php then, there are two ways to do it, you can either call :
$extractor = ColorExtractor::createFromURL([class of color extractor], [filename]);
$extractor = new HueColorExtractor([gd image], [image size]);
$color = $colorExtractor->extract();