Socket
Socket
Sign inDemoInstall

image-palette

Package Overview
Dependencies
7
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    image-palette

Image color palette, no node-canvas


Version published
Maintainers
1
Install size
0.999 MB
Created

Readme

Source

Image-palette

Image color palette extraction. Fork of palette without node-canvas dependency and async result.

Installation

$ npm install image-palette

API

Palette's public API consists of a single function, the one returned by require(). This function accepts the filepath you wish to compute a color palette for, a callback and an optional number of samples defaulting to 5.

var palette = require('image-palette');
var Color = require('color');

var colors = palette('./image.jpg', function (colors) {
  Color().rgb(colors[0]);
});

NPM

Keywords

FAQs

Last updated on 02 Jun 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc