ComfyUI Node
Load GIF as Video
Loads an animated GIF/APNG/WEBP as a VIDEO stream. The animation loops until the requested frame count or duration is filled, and the playback speed is adjustable.
Load GIF as Video
- video
- images
◄file►
◄length_modeframes►
◄frames16►
◄seconds2.0►
◄loops1►
◄speed1.00►
◄backgroundblack►
Categoryload-gif-as-video
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| file | COMBO | Animated GIF / APNG / WEBP in the ComfyUI input directory. | |
| length_mode | COMBO | frames | How the output length is specified: a frame count, a duration in seconds, or whole playthroughs. |
| frames | INT | 161–10000 | Number of frames to output (length_mode = frames). |
| seconds | FLOAT | 2.00.01–3600 | Duration to output in seconds (length_mode = seconds). |
| loops | INT | 11–10000 | How many times the animation plays through (length_mode = loops). |
| speed | FLOAT | 1.000.01–100 | Playback speed multiplier. Scales the VIDEO output's frame rate; the IMAGE batch, which has no frame rate, gets the speed baked into its frames instead. |
| background | COMBO | black | Color transparent pixels are composited over — VIDEO has no alpha channel. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| video | VIDEO | — |
| images | IMAGE | — |