Frame Generation

video-generate

The video-generate parameter controls what kind of image output is produced from a video.

ValueDescription
animationGenerates an animated image. Use fm to select the format (gif, webp, avif, png). Defaults to GIF if fm is omitted.
gifLegacy alias for video-generate=animation&fm=gif. Prefer animation for new integrations.
thumbnailExtracts a single static image frame from the video. Use fm to specify the output format (e.g. fm=jpg, fm=png).
spritesheetGenerates a spritesheet image grid. See the Spritesheets docs for full parameter details.

animation

Generates an animated image from a video clip. The fm parameter selects the output format:

fm valueOutput
gif (or omit fm)Animated GIF
webpAnimated WebP
avifAnimated AVIF
pngAnimated PNG (APNG)
jxlAnimated JXL (see note)
jpg and other still-only formatsSingle still frame — the animation flag is silently ignored

JXL note: the current FFmpeg build has no animated JPEG XL encoder, so Iris first renders an animated WebP; the downstream imgix image pipeline transcodes it to animated JXL for delivery.

WebP and AVIF are full-color and substantially smaller than GIF. Animated AVIF produces the smallest files.

You can control the clip window with the clip parameters.

The output can be transformed with any Rendering API parameter. For example, auto=compress,format applies optimal compression, and fit controls resizing.

Defaults and limits:

PropertyDefaultCap
Duration5 s10 s (min 0.25 s)
Frame rate15 fps30 fps (never above source fps)
Width / height320 px on unset axis640 px per axis (never above source)
LoopInfinite

Use video-loop to control loop behavior: omitting video-loop or setting a negative value loops forever; video-loop=0 plays once; video-loop=N plays N additional times after the first.

Animated GIF (preferred form)
sandbox-demo
Animated WebP — smaller file size than GIF
sandbox-demo

gif

Legacy alias for video-generate=animation&fm=gif. Fully supported for backwards compatibility, but new integrations should prefer video-generate=animation&fm=gif for clarity and access to all animated formats. See the animation section for demos and full parameter details.

thumbnail

Generates a static thumbnail image from the video. The fm parameter specifies the output image format (e.g. fm=jpg, fm=png).

The thumbnail frame is auto-selected as the most representative frame using color-histogram scoring, which avoids solid-color and black frames. To extract a thumbnail at a specific time, use video-thumbnail instead.

If fm=gif is also present, video-generate=thumbnail takes precedence and returns a single still frame rather than an animation.

Static thumbnail extracted from video
sandbox-demo