Grab the color palette from an image using just Javascript. Works in the browser and in Node.
MIT License
Bot releases are hidden (Show)
Full Changelog: https://github.com/lokesh/color-thief/compare/v2.3.2...v2.4.0
Published by lokesh over 4 years ago
fix: Use image naturalHeight and naturalHeight #182 Thanks to @wangcheng
Published by lokesh over 4 years ago
Example node usage:
const { resolve } = require('path');
const ColorThief = require('colorthief');
const img = resolve(process.cwd(), 'night.jpg');
ColorThief.getColor(img)
.then((color) => {
console.log(color);
})
src/color-thief-node.js
<canvas>
tag req in browser, but this is first step towards adding support.)Highlights
grunt
and bower
Changelog
Published by lokesh about 9 years ago
Published by lokesh about 11 years ago