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

    Class Router

    Evaluates the execution environment and selects the optimal compression engine for each operation (fast path, AVIF encoder, heavy path / Node).

    Index

    Constructors

    Methods

    • Returns true if the format can be encoded without FFmpeg Wasm in the browser.

      • Images: OffscreenCanvas → WebP, JPEG, PNG
      • Audio: WebCodecs AudioEncoder → AAC, Opus
      • Video: WebCodecs VideoEncoder → H.264 (MP4), VP8/VP9 (WebM)

      Always returns false in Node.js (which uses native child_process instead).

      Parameters

      Returns boolean