Home

Awesome

fast-png

PNG image decoder and encoder written entirely in JavaScript.

<h3 align="center"> <a href="https://www.zakodium.com"> <img src="https://www.zakodium.com/brand/zakodium-logo-white.svg" width="50" alt="Zakodium logo" /> </a> <p> Maintained by <a href="https://www.zakodium.com">Zakodium</a> </p>

NPM version build status npm download

</h3>

Installation

$ npm install --save fast-png

Usage

decode(png[, options])

Arguments

Options

encode(image)

Arguments

hasPngSignature(array)

Returns whether the array starts with the PNG signature (magic bytes).

PNG standard

Spec can be found at: https://www.w3.org/TR/PNG/

License

MIT