@wocart/storefront / review-media / PhotoOptions
Interface: PhotoOptions
What a review form does in the browser before a photo or a voice note is sent, so it arrives small on a slow mobile connection: a photo shrunk and re-encoded without its EXIF, a voice note recorded at a low bitrate that stops at the store's limit. Each takes its browser dependencies as an optional last argument, for tests and unusual hosts.
Properties
maxEdge?
optionalmaxEdge?:number
Longest edge in pixels. Default 1600 (what the server keeps).
quality?
optionalquality?:number
Encoder quality, 0–1. Default 0.82.