@mica/sdk (SDK contract v1)
    Preparing search index...

    Function thumbnailFromImage

    • Draw a loaded image down to thumbnail size and encode it.

      Returns null rather than throwing on anything it cannot do — no intrinsic size, a canvas the engine refuses to read back — because a photo saved without a thumbnail is recoverable and a shutter press that saves nothing is not.

      Parameters

      • img: HTMLImageElement

      Returns string | null