0.1.6 • Published 1 year ago

libwebp-wasm v0.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

WIP

install

npm install libwebp-wasm

usage

api

decode

    const { width, height, frameList } = await decode(webpFileBytes);
    for (const { data } of frameList) {
      const c = rgbaToCanvas(data, width, height);
      document.body.appendChild(c);
    }

encodeFiles

const { width, height } = await getSize(fileBytesList[0]);
const webpFileBytes = await encodeFiles(fileBytesList, width, height, 60);

encodeRGBA

encodeRGBA(rgba, width, height, 85) 
0.1.4

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago