img-color
1.0.2 • Public • Published img-color
Get dominant color of image directly from url
Install
$ npm install img-color
Usage
const color = require('img-color');
color.getDominantColor(url)
.then(json => console.log(json))
.catch(err => console.error(err));
Output
returns json object wher key is dColor
and value hex formated color
Package Sidebar
Install
Weekly Downloads