Skip to main content

Interface: ImageViewerCaptureOptions

Options for toBlob() on <image-viewer> and the ImageViewer handle.

Properties​

height?​

optional height?: number


quality?​

optional quality?: number

Encoding quality from 0 to 1 for JPEG and WebP.


type?​

optional type?: "image/png" | "image/jpeg" | "image/webp"

image/png (default), image/jpeg or image/webp. Browsers that cannot encode a type return a PNG.


width?​

optional width?: number

Output size in pixels. Without either, the image's own size; with one, the other keeps the aspect ratio.