@imagescript/codecs
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

fast codecs bindings for node and browsers

npm i @imagescript/codecs

import { png } from '@imagescript/codecs';

const rgba = new Uint32Array(256 * 256);
const image = png.encode(rgba, { width: 256, height: 256 });

supported platforms

node@10 node@12 node@14 node@16
wasm32
macos x64
macos arm64
windows x64
linux x64 gnu
linux arm64 gnu

you can force usage of wasm by setting CODECS_FORCE_WASM env variable

for deno and browsers use @imagescript/codecs/wasm/bundle/browser.js cdn

benchmarks

TODO!

License

MIT © evan matmen

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    2

Package Sidebar

Install

npm i @imagescript/codecs

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

4.59 MB

Total Files

18

Last publish

Collaborators

  • evan
  • matmen