Extract color palettes from images. A node-friendly port of the Color Thief browser library.
This experimental project is no longer maintained (and has no tests). Check out get-image-colors, which is maintained, has tests, and has no non-node dependencies.
npm install thief --save
Cairo has a few dependencies. You'll need to run the following to develop with thief on a Mac:
brew install cairobrew install jpg
Check out rainbowbot, an open-source Node.js web app that uses thief.