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

    Function fileToArrayBuffer

    • Reads a File or Blob into an ArrayBuffer. Used internally before dispatching to the fast path, AVIF encoder, or FFmpeg.

      Parameters

      • file: File | Blob

        The file or blob to read.

      Returns Promise<ArrayBuffer>

      A promise that resolves to the file's raw bytes.