An open API service indexing awesome lists of open source software.

https://github.com/tutv/luxojr

Get pixels from image or buffer
https://github.com/tutv/luxojr

buffer images jpeg nodejs parser pixels png

Last synced: 14 days ago
JSON representation

Get pixels from image or buffer

Awesome Lists containing this project

README

          

# luxojr
Get pixels from image or buffer

Support types: image/jpeg, image/jpg, image/png

## Installation
```bash
npm i --save luxojr
```

## Usage
```js
const parse = require('luxojr')
const fs = require('fs')
const path = require('path')

setImmediate(async () => {
try {
const file = path.join(__dirname, 'test.jpg')
const result = await parse(file)

console.log(result)
} catch (error) {
console.log("ERROR", error)
}
})

```