A PHP class which takes an image resource and returns the colour palette used in that image. Customizable in performance and accuracy.