The Ops Community ⚙️

Rocky Yang
Rocky Yang

Posted on

Zero-Upload Browser Media Pipelines: Designing a 93 KB Client-Side GIF89a & WebCodecs Workbench

Most online GIF utilities upload user recordings to remote worker queues and transcode with server-side FFmpeg. While convenient, that architecture adds cloud egress bills, cold-start latency, and unnecessary exposure of internal product screenshots or terminal demos.

When building Offline GIF Editor, we took a strict client-side-first architecture so every decode, frame edit, crop, cutout, merge, and export happens strictly inside browser memory — with zero server uploads and zero COOP/COEP header lock-in.

Key Engineering Decisions

  1. Core Bundle Budget Under 95 KB: The core darkroom runtime stays under 95 KB while heavy codecs (WebP/APNG/MP4) load lazily on demand.
  2. GIF89a Frame-Disposal Integrity: Re-compositing canvas frames while honoring RestoreToBackground and RestoreToPrevious disposal flags avoids ghost trails during trimming and per-frame editing.
  3. Scoped Per-Frame Cutout & Visual FX: Users can apply edge-connected flood-fill alpha cutouts or visual presets across all frames, a single frame, or a filmstrip frame range without mutating untouched frames.
  4. Dedicated Single-Intent Routes: Focused workflows like Merge GIFs, WebP to GIF, GIF to MP4, and Blur GIF share the same zero-upload engine.

Try the live browser workbench directly at offlinegifeditor.com.

Top comments (0)