ComfyUI-KJNodes
Run ComfyUI Easily with InstaSD
Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:
- One-click deployment
- Any model, any node
- Powerful GPUs for rapid iteration
Available Nodes
ImageConcanate
ImageConcanate Node Documentation
Overview
The ImageConcanate node is part of the ComfyUI environment and forms part of the KJNodes collection. This node provides a functionality for image processing whereby it concatenates two images, image2 to image1, in a specified direction. The concatenation can be adjusted such that the size of the images matches, depending on the configuration settings.
Functionality
The ImageConcanate node handles two main tasks:
- Concatenates
image2toimage1based on a user-specified direction. - Offers the option to resize
image2to match the dimensions ofimage1if necessary.
Inputs
The ImageConcanate node accepts the following inputs:
- image1: The first image to which the second image (
image2) will be concatenated. - image2: The second image that will be concatenated to the first image (
image1). - direction: Specifies the direction in which
image2should be concatenated toimage1. The available directions are:right: Concatenatesimage2to the right ofimage1.down: Concatenatesimage2belowimage1.left: Concatenatesimage2to the left ofimage1.up: Concatenatesimage2aboveimage1.
- match_image_size: A boolean value that, when set to
True, resizesimage2to match the size ofimage1before concatenation, preserving the aspect ratio. If set toFalse, the images are concatenated as they are.
Outputs
The ImageConcanate node produces the following output:
- image: The resultant image after the concatenation operation is performed according to the specified direction and size matching configuration.
Usage in Workflows
In ComfyUI workflows, the ImageConcanate node can be utilized for a variety of image processing tasks where arranging multiple images in a specific configuration or layout is necessary. This might include:
- Creating composite images from a series of source images.
- Arranging images for visualization purposes.
- Preparing images for further processing by combining them into a single image.
Special Features and Considerations
- Adaptive Size Matching: The node offers an option to resize
image2to maintain a seamless concatenation withimage1, which is useful for operations where alignment and consistent sizing are crucial. - Flexible Concatenation Directions: Users can define the orientation of the concatenation, allowing for customizable image layouts.
- Batch Handling: The function automatically adjusts batch sizes to ensure that concatenations are performed consistently across multiple image pairs.
- Aspect Ratio Preservation: When
match_image_sizeis enabled, resizing is performed with an emphasis on maintaining the aspect ratio ofimage2.
This node is an asset in workflows necessitating the combination of two images and can serve as a foundational utility for complex image manipulations and presentations within the ComfyUI system.