ImgTransformSaveOptions | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Type Alias ImgTransformSaveOptions

    type ImgTransformSaveOptions = {
        quality?: number;
        type?: string;
    }
    Index

    Properties

    Properties

    quality?: number

    Quality for lossy formats, between 0 and 1. Defaults to 0.85 if not set

    type?: string

    Type. Browsers default to image/png (and also pick that if the requested type is unsupported. See also https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob)