# image-to-rgba-matrix

> Turn an image to a matrix of red, green, blue and alpha values

Latest version **1.0.0** (published 2017-05-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install image-to-rgba-matrix
pnpm add image-to-rgba-matrix
yarn add image-to-rgba-matrix
bun add image-to-rgba-matrix
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-05-13 |
| First published | 2017-05-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Ben Evans |
| Maintainers | bencevans |
| Keywords | image, rgb, red, green, blue, alpha |

## Links

- npm: https://www.npmjs.com/package/image-to-rgba-matrix
- Repository: https://github.com/bencevans/image-to-rgba-matrix
- Homepage: https://github.com/bencevans/image-to-rgba-matrix#readme
- Issues: https://github.com/bencevans/image-to-rgba-matrix/issues
- npm.io page: https://npm.io/package/image-to-rgba-matrix

## Dependencies (1)

- [jimp](https://npm.io/package/jimp.md) ^0.2.27

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-05-13

## README

# image-to-rgba-matrix

> Convert an image into a RGBA matrix.

## Install

    $ yarn add image-to-rgba-matrix

    $ npm install --save image-to-rgba-matrix

## Usage

```js
// ES5
const imageToRgbaMatrix = require('image-to-rgba-matrix');

// ES6
import imageToRgbaMatrix from 'image-to-rgba-matrix';

// From file path
imageToRgbaMatrix('./path-to-image').then(console.log);

// From image (png/jpg/bmp) buffer
imageToRgbaMatrix(imageBuf).then(console.log);

// From url
imageToRgbaMatrix('http://bencevans.io/avatar.jpg').then(console.log);
```

## Licence

MIT &copy; [Ben Evans](https://bencevans.io)

---
_Source: https://npm.io/package/image-to-rgba-matrix · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
