readim
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

readim

Universal Image File Reader

install

npm install readim

usage in the browser / frontend

import readim from 'readim';

readim(arrayBuffer);
{ height: 200, width: 100, data: Uint8ClampedArray [ 112, 221, 31, 255, ... ] }

usage in NodeJS / backend

const readim = require("readim");

readim(buffer);
{ height: 200, width: 100, data: Uint8ClampedArray [ 112, 221, 31, 255, ... ] }

/readim/

    Package Sidebar

    Install

    npm i readim

    Weekly Downloads

    2

    Version

    1.0.0

    License

    CC0-1.0

    Unpacked Size

    317 kB

    Total Files

    9

    Last publish

    Collaborators

    • danieljdufour