pixel-average
Average red, green, blue, alpha & brightness of an image
- Javascript only (no worries about bindings)
- Accepts PNG, JPG or BMP from Buffer, Path or URL
Install
$ npm install --save pixel-average
Usage
const pixelAverage = const source = './img.jpg' // source accepts any format Jimp reads (BMP, JPG, PNG):// String: URL or Path to image// Buffer
API
pixelAverage(source: buffer(png/jpg/bmp)/string(url)/string(path), callback: function)
Related
- Jimp - image processing library for Node written entirely in JavaScript
Licence
MIT © Ben Evans