The picker exists only in a shell. In a browser,
open resolves at once with error: 'not_available'. Use a file input or @cskn/ui’s FilePicker there.Options
boolean
default:"false"
Allow selecting more than one image.
number
default:"0.7"
JPEG quality from
0 to 1.Result
{ assets?, cancelled, error? }. Each asset has uri (a base64 data URL), width, height, fileName and mimeType. error is 'permission_denied' when photo access is refused (permission is requested automatically), or 'not_available' outside a shell.
Without the hook, use openImagePicker(options).