Executable example · advanced
Generate a two-frame GIF
Generate a tiny server-side GIF from two Apexify canvas frames and verify its GIF structure.
Prerequisites
- Node.js 22, 24, or 26
- apexify.js 6.0.0
Authoritative source
Source hash: 609a9b8654f7cb2e819f8d81bc4801369625e8bdf3f522346bc281602cdcd7a8. The displayed payload is generated from the files executed by DOC-5 verification.

Show verified animation

Goal
Prove the current server-side GIF encoder using small deterministic local frames.
Important options
outputFormatwidthheightrepeatquality
Why these choices
- Buffer output keeps verification inside the fixture.
- Small dimensions and two frames keep CI cost bounded.
- The Gallery uses the verified poster by default so reduced-motion users are not forced to watch animation.
Variants
- Increase frame count or use generated-frame mode for real animation workflows.
Performance note
GIF encoding is heavier than a single PNG, so the completion example is intentionally tiny.
Error note
Missing frame data, invalid dimensions, or frame-limit violations fail the run.
Related documentation
Related API
Next steps
Use production-sized inputs only after measuring frame count, dimensions, and encoding quality.