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
- Host: GitHub
- URL: https://github.com/tutv/luxojr
- Owner: tutv
- Created: 2020-11-13T04:48:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-14T05:50:06.000Z (over 5 years ago)
- Last Synced: 2025-08-07T08:18:33.428Z (10 months ago)
- Topics: buffer, images, jpeg, nodejs, parser, pixels, png
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/luxojr
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
}
})
```