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

0.0.2 • Public • Published

Browser/WebAssembly Image Resizing and Optimization (bwirao)

function resize(imageData: Uint8Array, width: number, height: number): Promise<Uint8Array>;

The library contains multiple smallish WebAssembly bundles. When calling resize, a WebAssembly bundle is loaded, based on the format of the image. Output bytes is an image in JPEG format.

This is just an initial testing release, and there is no guarantee any of the API will stay the same in future versions.

Readme

Keywords

none

Package Sidebar

Install

npm i bwirao

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

1.4 MB

Total Files

21

Last publish

Collaborators

  • evestera