Documentation
    Preparing search index...

    Interface BoundedJpegDecoderOptions

    Options for the isolated, runtime-capped JPEG codec (§96).

    interface BoundedJpegDecoderOptions {
        maximumDecodedBytes?: number;
        maximumExpansionRatio?: number;
        maximumWorkingBytes?: number;
        wasmBinary: Uint8Array;
    }
    Index
    maximumDecodedBytes?: number

    RGBA8 output ceiling; default 64 MiB. Must be a positive safe integer.

    maximumExpansionRatio?: number

    Output bytes per encoded byte; default 1000. Must be positive and finite.

    maximumWorkingBytes?: number

    Linear heap ceiling, including input, scratch and native output. Default 128 MiB.

    wasmBinary: Uint8Array

    Application-pinned squoosh_jpg_bg.wasm from @jsquash/jpeg@1.6.0. Supply trusted executable bytes, never a module selected by an asset.