Based on an idea from a Photoshop action I created, I designed this PHP script to parse an image, take random samples from it, and generate a color palette. The results are vary from image to image however, certain pictures will return better results. Made over with JavaScript and CSS this proves to be a simple and powerful tool.