tinyimg - v1.0.0
    Preparing search index...

    Function readSource

    • Reads any accepted source into bytes.

      A caller should never have to reach for a Response.arrayBuffer() or drain a stream themselves to hand this library an image; every shape a Worker is likely to be holding one in is accepted.

      Parameters

      • source: Source

        The image or blob.

      Returns Promise<Uint8Array<ArrayBufferLike>>

      Its bytes.