Function: encodeRgbaDeflate()
encodeRgbaDeflate(
rgba,coords):Promise<string>
Defined in: src/lib/image/index.ts:162
Encode raw RGBA pixels for a bounding box as deflated base64 (the rgba-deflate image encoding).
Parameters
rgba
Uint8Array<ArrayBufferLike> | Uint8ClampedArray<ArrayBufferLike>
coords
Returns
Promise<string>
Example
const data = await encodeRgbaDeflate(imageData.data, [0, 0, imageData.width, imageData.height]);