image-utils-js
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

image-utils-js

Set of utilities for image

Methods

  • getImageBrightness: promise that when resolved return a number from 0 to 255 (0 dark / 255 light).
import {getImageBrightness} from 'image-utils-js'
const url = 'image-url.jpg';
getImageBrightness(url).then((n) => console.log(n))

Package Sidebar

Install

npm i image-utils-js

Weekly Downloads

0

Version

0.0.7

License

MIT

Unpacked Size

10.3 kB

Total Files

14

Last publish

Collaborators

  • matteobarone