KJNodes/imagegenerated

Cross Fade Images Multi(CrossFadeImagesMulti)

This node supports multiple interpolation algorithms to control the pacing and style of transitions, including linear, ease-in, ease-out, etc.

Cross Fade Images Multi

image_1
image_2
IMAGE
inputcount
2
interpolation
COMBO
transitioning_frames
1
KJNodes

The Cross Fade Images Multi node supports various interpolation algorithms to control the rhythm and style of transitions, including linear, ease-in, ease-out, and more.

The Cross Fade Images Multi node is used to create smooth transition effects between multiple image sequences. It generates a series of transition frames by calculating the interpolation between the last frame of one sequence and the first frame of the next adjacent sequence, seamlessly connecting multiple image sequences into a longer one. Its core function is to achieve dynamic fusion between image sequences.

Node Functionality

This node supports various interpolation algorithms to control the rhythm and style of transitions, including linear, ease-in, ease-out, and more. Technically, it automatically checks the dimensions of input images. If they are inconsistent, it uses the Lanczos algorithm to scale images to the dimensions of the first input image. The node processes all input image sequences in a loop, generating the specified number of transition frames for each pair of adjacent sequences, and finally concatenates all original frames and transition frames for output.

Node Parameter Description - Cross Fade Images Multi

Connection Inputs (Inputs)

Parameter NameData TypeRequiredDefault ValueRange/OptionsDescription
image_1IMAGEYes--The first connected image sequence. Its dimensions will serve as the scaling reference for all subsequent images.
image_2IMAGENo--The second connected image sequence. This is an optional parameter. When inputcount is greater than 2, more image input ports need to be added via the right-click menu.

Control Parameters (Parameters)

Parameter NameData TypeRequiredDefault ValueRange/OptionsDescription
interpolationCOMBOYeslinear"linear", "ease_in", "ease_out", "ease_in_out",...Options include ease_in, ease_out, ease_in_out, bounce, elastic, glitchy, exponential_ease_out.
inputcountINTYes22 - 1000 (step: 1)Specifies the total number of image sequences to be connected and transitioned. The minimum value is 2, and the maximum is 1000.
transitioning_framesINTYes10 - 4096 (step: 1)Defines the number of transition frames generated between each pair of adjacent image sequences, ranging from 0 to 4096.

Output

Parameter NameData TypeDescription
IMAGEIMAGEOutputs the complete image sequence after connection and insertion of transition frames.

Usage Scenarios

This node is very useful when creating videos or animations. For example, when you have generated several animation sequences with slightly different styles and want to smoothly stitch them together into a complete video, you can use this node. By setting the transitioning_frames parameter, you can control the duration of the transition at each junction, making the scene switches less abrupt.

Notes

Please note that this node requires the input image tensor format to be the standard ComfyUI IMAGE type. When the number of transition frames is set to 0, adjacent sequences will be directly concatenated without any transition effect. When there are many input images, the total number of generated frames will increase accordingly, so be mindful of VRAM usage.

The Cross Fade Images Multi node is from the ComfyUI-KJNodes node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…