omni-compress - v2.3.2
    Preparing search index...

    Variable WorkerConfigConst

    WorkerConfig: {
        imageWorkerUrl: string;
        audioWorkerUrl: string;
        videoWorkerUrl: string;
        ffmpegCoreUrl: string;
        ffmpegWasmUrl: string;
        ffmpegWorkerUrl: string;
        mainThreadThreshold: number;
        avifMainThreadThreshold: number;
    } = ...

    Global configuration for Web Workers and execution thresholds.

    Type Declaration

    • imageWorkerUrl: string

      URL to image.worker.js

    • audioWorkerUrl: string

      URL to audio.worker.js

    • videoWorkerUrl: string

      URL to video.worker.js

    • ffmpegCoreUrl: string

      URL to ffmpeg-core.js (or ffmpeg-core-mt.js if SharedArrayBuffer is supported)

    • ffmpegWasmUrl: string

      URL to ffmpeg-core.wasm

    • ffmpegWorkerUrl: string

      URL to ffmpeg-core.worker.js (required for multi-threading)

    • mainThreadThreshold: number

      Threshold (in bytes) for bypassing Web Workers to avoid communication overhead. Files smaller than this will run on the main thread for lower latency. Default: 4MB (4 * 1024 * 1024). Set to 0 to always use Web Workers.

    • avifMainThreadThreshold: number

      Threshold (in bytes) for AVIF main-thread execution. AVIF is much heavier than WebP/JPEG, so the threshold is lower by default. Default: 512KB (512 * 1024).