KJNodes/imagegenerated

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

images_1
images_2
IMAGE
start_index
0
interpolation
COMBO
transition_type
COMBO
transitioning_frames
1
blur_radius
0.0
reverse
device
CPU
KJNodes

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 NameData TypeRequiredDefault ValueValue Range/OptionsDescription
images_1IMAGEYes--: Input the first image batch, serving as the source image sequence before the transition begins.
images_2IMAGEYes--: Input the second image batch, serving as the target image sequence after the transition ends.

Control Parameters (Parameters)

Parameter NameData TypeRequiredDefault ValueValue Range/OptionsDescription
interpolationCOMBOYeslinear"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_typeCOMBOYeshorizontal 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.
deviceCOMBOYesCPU"CPU", "GPU": Select the device used to perform the transition calculations. Available values are CPU or GPU.
start_indexINTYes0-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_framesINTYes11 - 4096 (step: 1): Sets the total number of frames for the transition effect duration. The value range is 1 to 4096.
blur_radiusFLOATYes0.00.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.
reverseBOOLEANYesFalse-: Boolean value. When set to True, reverses the direction of the transition animation.

Output

Parameter NameData TypeDescription
IMAGEIMAGE: 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.

The Image Batch Join With Transition node is from the ComfyUI-KJNodes node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…