-
Notifications
You must be signed in to change notification settings - Fork 5
encode.Function.compress
github-actions[bot] edited this page Oct 26, 2024
·
8 revisions
@monogrid/gainmap-js / encode / compress
compress(
params
):Promise
<CompressedImage
>
Converts a RAW RGBA image buffer into the provided mimeType
using the provided quality
• params: 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