@dusrel/image API
    Preparing search index...

    Function optimize

    • Optimises an existing GIF by decoding it and re-encoding with fresh settings — a shared global palette and/or a faster quantisation speed are the usual wins (the gifsicle-style workflow, on a permissive engine). Delays and the loop count are preserved unless overridden.

      Parameters

      Returns Promise<Uint8Array<ArrayBufferLike>>