0.0.1 • Published 3 years ago
read-png v0.0.1
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 });
0.0.1
3 years ago