EasyUse/Imagegenerated
imageConcat
imageConcat combines two input images into one output image by concatenating them in a specified direction.
image Concat
image1
image2
IMAGE
direction
right
match_image_size
Easy Use
imageConcat combines two input images into one output image by concatenating them in a specified direction. It is useful for simple side-by-side or stacked image layouts and returns a single IMAGE tensor.
Inputs
- image1 (IMAGE): The first input image.
- image2 (IMAGE): The second input image.
- direction (COMBO, default:
"right"): Determines where image2 is placed relative to image1."right": image1 on the left, image2 on the right."down": image1 on top, image2 below it."left": image2 on the left, image1 on the right."up": image2 above image1.
- match_image_size (BOOLEAN, default:
false): When enabled, the input images are matched to compatible dimensions before concatenation. When disabled, the original image sizes are used as-is, which can produce uneven or mismatched results if the inputs differ.
Outputs
- IMAGE: The concatenated output image.
Usage Notes
- For horizontal directions (
"left"and"right"), the two images generally need matching heights. For vertical directions ("up"and"down"), they generally need matching widths. - Enabling match_image_size is recommended when concatenating images of different sizes, since it helps normalize the inputs before combining them.
- If match_image_size is disabled, make sure the inputs are already sized appropriately upstream, or the output dimensions may be inconsistent.
Comments
Sign in with GitHub to join the discussion.