image-common-color
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

About

This is a simple library which grabs the common colors from an image. I use this in my own project to theme my site around a users custom logo upload.

Usage

Simply pass a file blob to ImageCommonColor

import ImageCommonColor from 'image-common-color';
...
ImageCommonColor(fileBlob).then(
    (list) => console.log(list)
);

Check the example for a quick demonstration using React.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i image-common-color

Weekly Downloads

0

Version

0.1.2

License

ISC

Unpacked Size

20.2 kB

Total Files

9

Last publish

Collaborators

  • dimitriadamou