0.0.1 • Published 3 years ago

@imagescript/codecs v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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@10node@12node@14node@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