Skip to content

KamilKalfas/img-color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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' }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published