SDK JS
    Preparing search index...

    Interface JxlDecoderOptions

    Construction options for JxlDecoder.

    interface JxlDecoderOptions {
        threads?: number | false | "auto";
        wasmInit?: WasmHostInit;
    }
    Index

    Properties

    Properties

    threads?: number | false | "auto"

    Convenience for wasmInit.threads — opt into multithreaded decode on a cross-origin-isolated page (falls back to single-thread otherwise). See WasmHostInit.threads. Example: new JxlDecoder({ threads: 'auto' }).

    wasmInit?: WasmHostInit

    wasm host initialization — where to load/serve the decoder .wasm from and the threading mode; see WasmHostInit. The wasm asset precedence (explicit wasmBytes/wasmUrlconfigure({ wasmBaseUrl }) → build default) is documented once on core's BitruviusConfig.