Image Batch Join With Transition(ImageBatchJoinWithTransition)
This node controls the blending process through various interpolation algorithms (such as linear, ease-in-ease-out) and transition types (such as slide, fade), and supports applying blur effects in the transition area.
Image Batch Join With Transition
The Image Batch Join With Transition node controls the blending process through various interpolation algorithms (such as linear, ease-in, ease-out) and transition types (such as slide, fade), and supports applying blur effects in the transition area.
The Image Batch Join With Transition node is used to create smooth transition effects between two image batches. Starting from a specified index in the first batch, it blends subsequent frames with images from the second batch, generating a coherent new image sequence that includes transition animations. Its core function is to achieve seamless connections between video or animation sequences.
Node Function
This node controls the blending process through various interpolation algorithms (such as linear, ease-in, ease-out) and transition types (such as slide, fade), and supports applying blur effects in the transition area. It accepts two IMAGE-type batch inputs, performs computations on CPU or GPU, and ultimately outputs a merged image batch where the number and effect of transition frames are precisely controlled by the user.
Node Parameter Description - Image Batch Join With Transition
Connection Inputs (Inputs)
| Parameter Name | Data Type | Required | Default Value | Value Range/Options | Description |
|---|---|---|---|---|---|
images_1 | IMAGE | Yes | - | - | : Input the first image batch, serving as the source image sequence before the transition begins. |
images_2 | IMAGE | Yes | - | - | : Input the second image batch, serving as the target image sequence after the transition ends. |
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 interpolation function for the transition animation, used to control the change curve of the blending speed. Available 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 visual transition effect between images. Available options include horizontal slide, vertical slide, box, circle, horizontal door, vertical door, fade. |
device | COMBO | Yes | CPU | "CPU", "GPU" | : Select the device used to perform the transition calculations. Available values are CPU or GPU. |
start_index | INT | Yes | 0 | -10000 - 10000 (step: 1) | : Specifies from which frame of the first image batch the transition should begin. The value range is -10000 to 10000, supporting negative values for counting from the end. |
transitioning_frames | INT | Yes | 1 | 1 - 4096 (step: 1) | : Sets the total number of frames for the transition effect duration. The value range is 1 to 4096. |
blur_radius | FLOAT | Yes | 0.0 | 0.0 - 100.0 (step: 0.1) | : Sets the intensity of the blur effect applied to the transition edges. The value range is 0.0 to 100.0, with a step of 0.1. |
reverse | BOOLEAN | Yes | False | - | : Boolean value. When set to True, reverses the direction of the transition animation. |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| IMAGE | IMAGE | : Outputs the final image sequence that merges the two input batches and adds the transition effect. |
Usage Scenario
When creating a short video, you can input animation sequences from two different scenes into images_1 and images_2 respectively. By setting start_index, you decide from which frame of the first scene the switch begins, and use transitioning_frames and transition_type to create transition effects such as horizontal slides or circular expansions, thereby seamlessly splicing the two clips into a complete film.
Notes
Ensure that both input batches contain at least one image, and that start_index is within a valid index range for the first batch. Setting too few transition frames may result in a jarring transition, while an excessively large blur radius may cause loss of image detail.
Image Batch Join With Transition Node Source Code Link
The Image Batch Join With Transition node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.