PhotoSettings: {
    height?: number;
    quality?: number;
    type?: "image/png" | "image/jpeg" | "image/webp";
    width?: number;
}

Output photo settings

Type declaration

  • Optional height?: number

    Output photo height

    Default

    {@link Player}'s input frame height
    
  • Optional quality?: number

    Output photo quality

    The quality support is platform specific, e.g. Safari 15.2 does not support the setting. See toBlob and toBlob quality for mor details.

    Default

    0.92 for "image/jpeg"
    

    Default

    0.8 for "image/webp"
    
  • Optional type?: "image/png" | "image/jpeg" | "image/webp"

    Output photo mime-type

    The mime-type support is platform specific, e.g. "image/webp" is not supported on Safari 15.2. See toBlob and toBlob type for details.

    Default

    "image/jpeg"
    
  • Optional width?: number

    Output photo width

    Default

    {@link Player}'s input frame width