Member Junction
    Preparing search index...

    The options this module passes to a DomRasterizer (a subset of html-to-image's own).

    interface DomRasterizerOptions {
        backgroundColor: string;
        pixelRatio: number;
        quality: number;
        skipFonts: boolean;
    }
    Index

    Properties

    backgroundColor: string

    The color behind transparent areas (JPEG has no alpha).

    pixelRatio: number

    Scale applied to the element's own size, so the longest edge is at most DomFrameCaptureOptions.MaxEdgePx.

    quality: number

    JPEG quality, 0 to 1.

    skipFonts: boolean

    Skip embedding web fonts: they add seconds and cross-origin failures, and the model does not need the typeface.