News for hackers. Stuff that matters.
Re:Color Thief, script for grabbing the color palette from a... by mark_story on Saturday January 07, 2012 @01:39PM (#3437686)
You can build a similar thing server side using Imagemagick. It has a great suite of tools for doing image quantization and other manipulations.
Re:Color Thief, script for grabbing the color palette from a... by chrisacky on Saturday January 07, 2012 @02:28PM (#3437843)
I've tried. I've failed. I would have loved seeing this been done in Imagick on PHP.
Re:Color Thief, script for grabbing the color palette from a... by sorghum on Saturday January 07, 2012 @04:54PM (#3438165)
You can do it like this with ImageMagick on the command line. This will quantize the image to 8 colors and list them in descending order of occurance:

  convert image.jpg -resize 400x400 -format %c -dither None -quantize LAB -colors 8 -depth 8 histogram:info:- | sort -r
Re:Color Thief, script for grabbing the color palette from a... by ciupicri on Sunday January 08, 2012 @12:09AM (#3438943)
Sorting should be done with sort -r -n -t :