Banuba WebAR JavaScript API Reference
    Preparing search index...

    Type Alias PhotoSettings

    Output photo settings

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

    Properties

    height?: number

    Output photo height

    Player's input frame height

    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.

    0.92 for "image/jpeg"
    
    0.8 for "image/webp"
    
    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.

    "image/jpeg"
    
    width?: number

    Output photo width

    Player's input frame width