@jsquash/qoi
Version:
Wasm Quite Ok Image Format (qoi) encoder and decoder supporting the browser. Repackaged from Squoosh App.
30 lines (20 loc) • 590 B
Markdown
- Adds support for only providing a module option override to the `init` function directly
**Example:**
```ts
import encode, { init } from '@jsquash/qoi/encode';
await init({
locateFile: (path) => {
const remoteLocation = 'https://cdn.mydomain.com/wasm';
return remoteLocation + path;
}
});
const buffer = await encode(/* image data */);
```
- Updates `locateFile` emscripten module option type to support prefix parameter.
- Initial release of the QOI codec