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
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 Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
image_1 | IMAGE | Yes | - | - | image_1 (Input Parameter): Connect the first image input to be blended. |
image_2 | IMAGE | Yes | - | - | image_2 (Input Parameter): Connect the second image input to be blended. |
Control Parameters
| Parameter Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
blending | COMBO | Yes | add | "add", "subtract", "multiply", "difference" | Select the blending algorithm: "add", "subtract", "multiply", or "difference". |
inputcount | INT | Yes | 2 | 2 - 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_amount | FLOAT | Yes | 0.5 | 0 - 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 Name | Data Type | Description |
|---|---|---|
| images | IMAGE | images (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.
Image Add Multi Node Source Code Link
The Image Add Multi node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.