1.0.0 • Published 9 years ago

image-palette-dominant v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 years ago

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

1.0.0

9 years ago