meo-canvas
    Preparing search index...

    Type Alias ImageSource

    ImageSource: { path: string } | { url: string } | { bytes: Uint8Array }

    Where an image's bytes come from.

    Type Declaration

    • { path: string }
      • Readonlypath: string

        A path on the machine doing the rendering, read at render time.

    • { url: string }
      • Readonlyurl: string

        A remote address, fetched at render time.

        Refused unless the renderer was built to fetch. The core is fetch-free by default and answers a URL with an error rather than reaching the network on an input's say-so; the CLI needs --features net for the same reason.

    • { bytes: Uint8Array }
      • Readonlybytes: Uint8Array

        The encoded image itself, when the caller already holds it.