1.0.2 • Published 7 years ago

img-color v1.0.2

Weekly downloads
93
License
MIT
Repository
github
Last release
7 years ago

img-color

Get dominant color of image directly from url

Build Status npm npm

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

{ dColor: 'ffc20c' }