Preview Animation(PreviewAnimation)
This node internally converts the input image tensor into a Pillow image object and can optionally apply masks to the image sequence to create animations with an alpha channel.
Preview Animation
The Preview Animation node internally converts the input image tensors into Pillow image objects and optionally applies masks to the image sequence to create animations with an alpha channel.
The Preview Animation node is a tool for quickly previewing image sequence animations within a ComfyUI workflow. It receives a series of images or a combination of images and masks, and generates an animation preview file at a specified frame rate, allowing users to instantly check the animation effect.
Node Functionality
This node internally converts the input image tensors into Pillow image objects and optionally applies masks to the image sequence to create animations with an alpha channel. It supports saving the result in GIF format and allows users to control the animation playback speed by adjusting the frame rate.
Node Parameter Description - Preview Animation
Connection Inputs (Inputs)
| Parameter Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
images | IMAGE | No | - | - | : Input image sequence for generating the animation. This parameter is an image tensor, typically from a batched image generation node. |
masks | MASK | No | - | - | : Input masks corresponding to the image sequence, used to add transparency effects to the images. This parameter is a mask tensor and must match the length of the image sequence. |
Control Parameters (Parameters)
| Parameter Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
fps | FLOAT | Yes | 8.0 | 0.01 - 1000.0 (Step: 0.01) | : Sets the frame rate for the generated animation, controlling the playback speed. The valid range is 0.01 to 1000.0, with an adjustment step of 0.01. |
Usage Scenarios
This node is very useful when creating frame-by-frame animations or evaluating image generation sequences (such as latent space walks, style transfer processes). Users can connect a node that generates an image sequence (e.g., the batched output of a VAE decoder) to this node, set an appropriate frame rate, and directly preview the animation effect at the end of the workflow without relying on external software.
Notes
Please note that the preview file generated by this node is a temporary file, primarily intended for quick inspection within the workflow and may not be suitable as a final output. Its output format is fixed to GIF, and advanced parameters such as compression level are not adjustable in the node interface.
Preview Animation Node Source Code Link
The Preview Animation node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.