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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    4

Package Sidebar

Install

npm i image-palette-dominant

Weekly Downloads

4

Version

1.0.0

License

MIT

Last publish

Collaborators

  • adeyahya