-
Notifications
You must be signed in to change notification settings - Fork 9
encode.Function.compress
github-actions[bot] edited this page Apr 2, 2025
·
17 revisions
@monogrid/gainmap-js / encode / compress
compress(
params
):Promise
<CompressedImage
>
Defined in: src/encode/compress.ts:40
Converts a RAW RGBA image buffer into the provided mimeType
using the provided quality
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