image-palette-dominant

1.0.0 • Public • Published

image-palette-dominant

Build Status

Gets dominant color palette of an image using imagemagick

Installation

npm install image-palette-dominant

Example

var ipd   = require('image-palette-dominant'),
    imgPath = './path/to/your/image.jpg'
 
ipd(imgPath, function(err, color){
  // hex color by default
  console.log(color) // '5b6c6e'
})
 
ipd(imgPath, {format: 'rgb'}, function(err, color){
  console.log(color) // [{count: '233234', hex: '#000'}, {...}]
})

License

MIT

Package Sidebar

Install

npm i image-palette-dominant

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • adeyahya