Transition Images In Batch(TransitionImagesInBatch)
This node supports multiple types of transition animations and interpolation easing functions. Technically, it generates intermediate frames by calculating the blending weights of two images at different time steps.
Transition Images In Batch
The Transition Images In Batch node supports various transition animation types and interpolation easing functions. Technically, it generates intermediate frames by calculating the blending weights between two images at different time steps.
The Transition Images In Batch node is used in ComfyUI to create smooth transition animations for a batch of sequential images. It blends them into a coherent dynamic sequence by inserting a specified number of transition frames between every two adjacent images in the sequence. This node is ideal for creating videos, GIF animations, or any scenario requiring smooth transitions between images.
Node Functionality
This node supports various transition animation types and interpolation easing functions. Technically, it generates intermediate frames by calculating the blending weights between two images at different time steps. It accepts standard IMAGE tensor inputs and can perform computations on either CPU or GPU to optimize performance. The core mechanism uses user-defined transition types (such as slide, fade, etc.) and interpolation curves to control the blending process, and can apply Gaussian blur to transition edges to soften the effect.
Node Parameter Description - Transition Images In Batch
Connection Inputs (Inputs)
| Parameter Name | Data Type | Required | Default Value | Value Range/Options | Description |
|---|---|---|---|---|---|
images | IMAGE | Yes | - | - | : Input a batch tensor containing multiple images. The node will generate transition frames for each pair of adjacent images in this sequence. |
Control Parameters (Parameters)
| Parameter Name | Data Type | Required | Default Value | Value Range/Options | Description |
|---|---|---|---|---|---|
interpolation | COMBO | Yes | linear | "linear", "ease_in", "ease_out", "ease_in_out",... | : Select the easing interpolation function for the transition animation, used to control the curve of blending progress over time. Options include linear, ease_in, ease_out, ease_in_out, bounce, elastic, glitchy, exponential_ease_out. |
transition_type | COMBO | Yes | horizontal slide | "horizontal slide", "vertical slide", "box", "c... | : Select the type of transition animation between images, defining how the new image covers the old one. Options include horizontal slide, vertical slide, box, circle, horizontal door, vertical door, fade. |
device | COMBO | Yes | CPU | "CPU", "GPU" | : Select the device to use for transition calculations. Options are CPU or GPU, to leverage the computational power of different hardware. |
transitioning_frames | INT | Yes | 1 | 0 - 4096 (Step: 1) | : Set the number of transition frames to insert between each pair of original images. Range is 0 to 4096, with a step of 1. |
blur_radius | FLOAT | Yes | 0.0 | 0.0 - 100.0 (Step: 0.1) | : Set the radius for Gaussian blur applied to transition edges. Range is 0.0 to 100.0, with a step of 0.1, used to soften harsh switching boundaries. |
reverse | BOOLEAN | Yes | False | - | : Boolean switch. When enabled, reverses the front-to-back order of each image pair in the transition animation. |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| IMAGE | IMAGE | : Outputs a complete image batch tensor containing all original images and the inserted transition frames. |
Usage Scenario
When creating a slideshow video composed of multiple static images, you can connect all loaded images in sequence into a batch and input it to this node. By setting the transitioning_frames parameter to define how many transition frames to insert between each pair of images, and selecting appropriate transition_type and interpolation to control the visual style of the animation, the node ultimately outputs a complete image sequence containing all original frames and transition frames, which can be directly used for video encoding.
Notes
When processing high-resolution images or setting a large number of transition frames, running on GPU will significantly speed up processing. Note that if the input images batch contains only a single image, the node will return it unchanged without generating any transition effects.
Transition Images In Batch Node Source Code Link
The Transition Images In Batch node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.