ComfyUI  >  Nodes  >  KJNodes for ComfyUI >  Image Concatenate

ComfyUI Node: Image Concatenate

Class Name

ImageConcanate

Category
KJNodes/image
Author
kijai (Account age: 2192 days)
Extension
KJNodes for ComfyUI
Latest Updated
6/25/2024
Github Stars
0.3K

How to Install KJNodes for ComfyUI

Install this extension via the ComfyUI Manager by searching for  KJNodes for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter KJNodes for ComfyUI in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Concatenate Description

Merge two images into a composite image with alignment and resizing capabilities for versatile image layout creation.

Image Concatenate:

The ImageConcanate node is designed to seamlessly merge two images into a single composite image. This node is particularly useful for AI artists who want to create complex image compositions by aligning images either horizontally or vertically. The node ensures that the images are properly aligned and resized if necessary, maintaining the visual coherence of the final output. By using this node, you can easily concatenate images in various directions, making it a versatile tool for creating intricate image layouts and designs.

Image Concatenate Input Parameters:

image1

This parameter represents the first image to be concatenated. It serves as one of the two primary images that will be merged. The size and batch dimensions of this image will influence the final output, especially if the match_image_size parameter is set to true.

image2

This parameter represents the second image to be concatenated. Similar to image1, this image will be merged with the first image based on the specified direction. The size and batch dimensions of this image will also play a crucial role in the final output.

direction

This parameter determines the direction in which the images will be concatenated. The available options are right, down, left, and up. For example, if right is selected, image2 will be placed to the right of image1. This parameter allows you to control the layout of the concatenated images.

match_image_size

This boolean parameter specifies whether the second image should be resized to match the dimensions of the first image. If set to true, image2 will be resized to match the width and height of image1, ensuring a seamless concatenation. If false, the images will be concatenated without resizing, which may result in misalignment if the images have different dimensions.

first_image_shape

This optional parameter allows you to specify the shape of the first image explicitly. If provided, it will be used to resize the second image when match_image_size is true. If not provided, the shape of image1 will be used by default.

Image Concatenate Output Parameters:

row

This output parameter represents the concatenated image resulting from merging image1 and image2 based on the specified direction. The output is a single composite image that combines the two input images, aligned according to the chosen direction and resized if necessary.

Image Concatenate Usage Tips:

  • To ensure a seamless concatenation, use the match_image_size parameter to resize the second image to match the dimensions of the first image.
  • Experiment with different direction values to achieve various layout effects, such as creating vertical or horizontal image strips.
  • Use high-resolution images to maintain the quality of the final concatenated image, especially if resizing is involved.

Image Concatenate Common Errors and Solutions:

Batch size mismatch

  • Explanation: The batch sizes of image1 and image2 do not match.
  • Solution: The node automatically repeats the images to match the largest batch size. Ensure that the input images have compatible batch sizes or rely on the node's internal handling.

Image size mismatch

  • Explanation: The dimensions of image1 and image2 do not match, causing misalignment.
  • Solution: Set the match_image_size parameter to true to resize image2 to match the dimensions of image1.

Invalid direction value

  • Explanation: The direction parameter is set to an invalid value.
  • Solution: Ensure that the direction parameter is set to one of the valid options: right, down, left, or up.

Image Concatenate Related Nodes

Go back to the extension to check out more related nodes.
KJNodes for ComfyUI
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.