Skip to content

fetchDecodePixels

fetchDecodePixels(url, maxEdge?): Promise<DecodedPixels>

Defined in: asset/imageDecode.ts:93

Fetch a URL and decode it to top-first RGBA pixels. The single fetch→blob→decode path the runtime asset sources use for estella:// / http origins (a CORS-mode <img> taints the canvas on custom schemes; fetch→blob sidesteps it). Uses the global fetch — these callers all run in a browser/electron context.

string

number = 0

Promise<DecodedPixels>