Converting Animated AVIF (`avis`) Tracks and Stills Into Looping GIF89a
Translating ISOBMFF `stts` Frame Timing Into GIF89a Centisecond Delays
Animated AVIF files store an AV1 video track inside an ISO Base Media File Format container (major brand avis), recording per-sample presentation durations inside the Sample Table Time-to-Sample (stts) box at arbitrary media timescales. Legacy chat apps, older email clients, GitHub issue trackers, and forum embeds that still reject animated AVIF require standard CompuServe GIF89a files.
Our Worker decodes every frame of an animated AVIF track using hardware WebCodecs ImageDecoder when available (with deterministic WASM fallback), maps stts millisecond durations to 10-millisecond Graphics Control Extension ticks, inserts a NETSCAPE2.0 infinite loop block for multi-frame clips, and compresses each indexed frame with variable-width LZW sub-blocks.
- Maps alpha < 128 pixels to dedicated transparent index 255 with background-restore disposal.
- Combines a 216-color 6×6×6 RGB cube with a 39-step intermediate neutral ramp so grayscale anti-aliasing stays clean.
- Includes an interactive frame scrubber so you can inspect or save individual lossless PNG frames alongside the GIF.