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

    Function encodeCanvas

    • Image encoding, and the downscale every photo is stored with (MICA-110).

      Here for the reason at the top of this file: the camera makes a thumbnail at capture time and cannot import lib/ by path (§2.7), and boundary.test.ts enforces it. An app attaching an image has the same need, which is what makes this platform surface rather than one app's helper.

      Parameters

      • canvas: HTMLCanvasElement
      • quality: number

      Returns string