read-png

0.0.1 • Public • Published

read-png

Universal PNG File Reader. Uses read-pixels in the Browser and pngjs in NodeJS

install

npm install read-png

usage in the browser / frontend

import readPNG from 'read-png';

const result = readPNG({ data: arrayBuffer });
// result is { height: 200, width: 100, pixels: [[[]]] }

usage in NodeJS / backend

const readPNG = require("read-png");

const result = readPNG({ data: buffer });

Package Sidebar

Install

npm i read-png

Weekly Downloads

184

Version

0.0.1

License

CC0-1.0

Unpacked Size

20.6 kB

Total Files

15

Last publish

Collaborators

  • danieljdufour