KJNodes/imagegenerated

Image Add Multi(ImageAddMulti)

This node technically implements image blending through PyTorch tensor operations, supporting four blending algorithms: `add` (addition), `subtract` (subtraction), `multiply` (multiplication), and `difference` (difference).

Image Add Multi

image_1
image_2
images
inputcount
2
blending
add
blend_amount
0.50
KJNodes

The Image Add Multi node technically implements image blending through PyTorch tensor operations, supporting four blending algorithms: add, subtract, multiply, and difference.

The Image Add Multi node is a tool for image blending processing. Its core function is to synthesize multiple input images according to specified mathematical operations. It allows users to flexibly control the number of images involved in the blending and choose different blending modes to generate the final output image.

Node Functionality

This node technically implements image blending through PyTorch tensor operations, supporting four blending algorithms: add, subtract, multiply, and difference. Users can set a blend_amount parameter to uniformly adjust the intensity weight of all input images before blending. The node dynamically processes the corresponding number of image inputs based on the set inputcount value.

Node Parameter Description - Image Add Multi

Connection Inputs

Parameter NameData TypeRequiredDefault ValueRange/OptionsDescription
image_1IMAGEYes--image_1 (Input Parameter): Connect the first image input to be blended.
image_2IMAGEYes--image_2 (Input Parameter): Connect the second image input to be blended.

Control Parameters

Parameter NameData TypeRequiredDefault ValueRange/OptionsDescription
blendingCOMBOYesadd"add", "subtract", "multiply", "difference"Select the blending algorithm: "add", "subtract", "multiply", or "difference".
inputcountINTYes22 - 1000 (Step: 1)inputcount (Input Parameter): Sets the total number of image inputs to be blended. The value range is an integer from 2 to 1000.
blend_amountFLOATYes0.50 - 1 (Step: 0.01)blend_amount (Input Parameter): Controls the intensity coefficient for all images before blending. The value range is from 0.0 to 1.0.

Output

Parameter NameData TypeDescription
imagesIMAGEimages (Output Parameter): Outputs the final image after blending processing.

Usage Scenarios

In practical workflows, this node is commonly used for image overlay, special effects synthesis, or creating transition animations. For example, when creating a dynamic texture fusion effect, you can connect a series of gradient images to this node. By adjusting the blending mode and intensity, you can generate a new image with multiple texture characteristics as material for subsequent processing.

Notes

Please note that all input images should have the same dimensions and number of channels to ensure the blending operations are performed correctly. The blending intensity parameter blend_amount is ineffective for the difference mode.

The Image Add Multi node is from the ComfyUI-KJNodes node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…