Type Alias AnyImageSource

AnyImageSource:
    | string
    | Uint8Array
    | Uint8ClampedArray
    | ArrayBuffer
    | number[]
    | ImageBitmapSource

an image source acceptable by a constructImageBitmapSource, which generates an ImageBitmapSource for a Canvas or an OffscreenCanvas.

if the source is a string, then it must be URI. i.e. data-uri, or url-links or relative-links are all acceptable, so long as they can be assigned to HTMLImageElement.src.