Probes the browser environment to determine which image MIME types are
supported for pixel-level operations.
This function performs a one-time check by attempting to convert a
OffscreenCanvas to MIME types. The result is
cached to prevent redundant hardware-accelerated operations on
subsequent calls.
Parameters
rasterMimes: string[] = defaultRasterMimes
List of MIME types to check
Returns Promise<string[]>
A Promise resolving to an array of supported MIME
types from the rasterMimes list.
Probes the browser environment to determine which image MIME types are supported for pixel-level operations. This function performs a one-time check by attempting to convert a OffscreenCanvas to MIME types. The result is cached to prevent redundant hardware-accelerated operations on subsequent calls.