Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias ImageEncodeOptions

    what an ImageEncoder is asked to produce

    type ImageEncodeOptions = {
        budgetMs?: number;
        format: "webp";
        lossless?: boolean;
        quality: number;
        width?: number;
    }
    Index
    budgetMs?: number

    the time the encoder may spend, in milliseconds; absent means no limit. It is a hint for an encoder that can trade quality for time, and the proxy stops waiting at this time either way

    format: "webp"
    lossless?: boolean

    encode without loss, so quality has no effect; absent means lossy

    quality: number

    1 to 100

    width?: number

    the widest the output may be, in pixels; absent means the source width