async encode(file)
File should be { type, data } where type is `png`, `webp`, or `jpg`, etc.
| Name | Type | Required | Description |
|---|---|---|---|
file |
object | yes | Encoder payload {type, data, ...}. |
Promise<Blob | Uint8Array>
No additional runtime notes yet.
No additional details yet.