# png-file-stream

> Stream a glob list of PNG files as bitmaps

Latest version **1.2.1** (published 2018-12-18) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install png-file-stream
pnpm add png-file-stream
yarn add png-file-stream
bun add png-file-stream
```

## 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.2.1 |
| Published | 2018-12-18 |
| First published | 2013-10-05 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 67.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Eugene Ware |
| Maintainers | eugeneware |
| Keywords | png, stream, bitmap, streaming, file, glob, globbing |

## Links

- npm: https://www.npmjs.com/package/png-file-stream
- Repository: https://github.com/eugeneware/png-file-stream
- Homepage: https://github.com/eugeneware/png-file-stream#readme
- Issues: https://github.com/eugeneware/png-file-stream/issues
- npm.io page: https://npm.io/package/png-file-stream

## Dependencies (3)

- [png-js](https://npm.io/package/png-js.md) ~0.1.1
- [through2](https://npm.io/package/through2.md) ^3.0.0
- [glob-stream](https://npm.io/package/glob-stream.md) ^6.1.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.2.1 (latest) — 2018-12-18
- 1.2.0 — 2018-12-18
- 1.1.0 — 2018-12-05
- 1.0.1 — 2018-12-05
- 1.0.0 — 2014-03-19
- 0.1.1 — 2014-03-19
- 0.1.0 — 2013-12-10
- 0.0.1 — 2013-10-05

## README

# png-file-stream

Stream a glob list of PNG files as bitmaps.

[![build status](https://secure.travis-ci.org/eugeneware/png-file-stream.png)](http://travis-ci.org/eugeneware/png-file-stream)

Given a glob match specifying a list of PNG images, this will return a readable
stream that will be a Buffer of the raw pixel data. This will be a one dimensional
array of RGBA values.

## Installation

This module is installed via npm:

``` bash
$ npm install png-file-stream
```

## Example Usage

Takes a glob match specifying a list of PNG images, and creates an animated GIF using
[gifencoder](https://github.com/eugeneware/gifencoder).

``` js
var pngFileStream = require('png-file-stream');
var encoder = new GIFEncoder(854, 480);

pngFileStream('test/**/frame?.png')
  .pipe(encoder.createWriteStream({ repeat: -1, delay: 500, quality: 10 }))
  .pipe(fs.createWriteStream('myanimated.gif')));
```

You can skip the PNG to RAW Pixel Data conversion, by passing an optional "false"
value through:

``` js
var pngFileStream = require('png-file-stream');
pngFileStream('test/**/frame?.png', false)
  .pipe(fs.createWriteStream('myconcatendatedpngs.dat')));
```

---
_Source: https://npm.io/package/png-file-stream · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
