Function: deflate()
deflate(
bytes):Promise<Uint8Array<ArrayBuffer>>
Defined in: src/lib/image/index.ts:111
Compress bytes with deflate using the built-in CompressionStream.
Parameters
bytes
Uint8Array<ArrayBuffer>
Returns
Promise<Uint8Array<ArrayBuffer>>
Example
const compressed = await deflate(rgbaBytes);