ImageScript v4.0.0
    Preparing search index...

    InterfaceGainMapEmbedOptions

    How the encoders that can carry a gain map (JPEG, AVIF, JPEG XL) write Image.gainMap, see their gainMap option

    interface GainMapEmbedOptions {
        quality?: number;
        scale?: number;
    }
    Index
    quality?: number

    The map's quality (0-100, like the format's quality; for JPEG XL 100 is lossless)

    90

    scale?: number

    The map's size as a factor of the image's (0-1)

    The map's own size