png-unique-colors

1.0.2 • Public • Published

JavaScript module to count unique colors of PNG image.

Usage

const pngUniqueColors = require('png-unique-colors')
const colors = await pngUniqueColors('path/to/image.png') // buffer also available
// 79766

It is same as ImageMagick identify command output.

identify -verbose -unique path/to/image.png | grep Colors:
# Colors: 79766

Readme

Keywords

none

Package Sidebar

Install

npm i png-unique-colors

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

387 kB

Total Files

9

Last publish

Collaborators

  • miyanaga