We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@monogrid/gainmap-js / encode / compress
compress(params): Promise<CompressedImage>
params
Promise
CompressedImage
Defined in: src/encode/compress.ts:40
Converts a RAW RGBA image buffer into the provided mimeType using the provided quality
mimeType
quality
CompressParameters
Promise<CompressedImage>
if the browser does not support createImageBitmap
if the provided source image cannot be decoded
if the function fails to create a canvas context