image-analyzer

0.1.0-beta.4 • Public • Published

Image-analyzer

Install it with node:

npm install image-analyzer --save

or

yarn add image-analyzer --save

or with link

<script src="./https://unpkg.com/image-analyzer@0.1.0/lib/index.js"></script>

Usage

ATTENTION IN THIS VERSION OF PACKAGE IMAGE NEED TO BE LOCAL

import in your js or link in html then use like this

const analyzer = new Analyzer(url);
 
analyzer
  .analyze()
  .then(colors => {
    // HERE YOU GOT ARRAY OF COLORS(hex)
    console.log(colors);
  })
  .catch(console.error);

WORKING ON PROGRESS...

Package Sidebar

Install

npm i image-analyzer

Weekly Downloads

7

Version

0.1.0-beta.4

License

MIT

Unpacked Size

64.7 kB

Total Files

20

Last publish

Collaborators

  • vamosgs