Serializes browser canvas content to raster image blobs. Supports PNG/JPEG/WebP/AVIF and falls back to PNG if the requested format is unsupported.
Serializes the given canvas or canvas wrapper to a Blob.
The source canvas or an object containing a canvas.
Optional image write options, including MIME type and quality.
A promise that resolves to a Blob representing the serialized image.
Serializes browser canvas content to raster image blobs. Supports PNG/JPEG/WebP/AVIF and falls back to PNG if the requested format is unsupported.