Image Grid Composite 3x3(ImageGridComposite3x3)
This node technically utilizes PyTorch's tensor concatenation operation to achieve its functionality.
Image Grid Composite3x3
The Image Grid Composite 3x3 node technically utilizes PyTorch's tensor concatenation operations to achieve its function.
The Image Grid Composite 3x3 node is an image stitching tool. Its core function is to automatically arrange and combine nine independent input images into a complete 3x3 image grid, following a left-to-right, top-to-bottom order. It simplifies the process of merging multiple images into a single large image, eliminating the need for manual position adjustments.
Node Function
This node technically utilizes PyTorch's tensor concatenation operations to achieve its function. It first concatenates the first three images (image1, image2, image3) horizontally (along the width dimension) to form the top row, the middle three images (image4, image5, image6) to form the middle row, and the last three images (image7, image8, image9) to form the bottom row. Subsequently, it concatenates these three rows vertically (along the height dimension), ultimately generating a single output image containing all input images.
Node Parameter Description - Image Grid Composite 3x3
Inputs
| Parameter Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
image1 | IMAGE | Yes | - | - | image1 (Input Parameter): The image placed in the first row, first column of the grid. |
image2 | IMAGE | Yes | - | - | image2 (Input Parameter): The image placed in the first row, second column of the grid. |
image3 | IMAGE | Yes | - | - | image3 (Input Parameter): The image placed in the first row, third column of the grid. |
image4 | IMAGE | Yes | - | - | image4 (Input Parameter): The image placed in the second row, first column of the grid. |
image5 | IMAGE | Yes | - | - | image5 (Input Parameter): The image placed in the second row, second column of the grid. |
image6 | IMAGE | Yes | - | - | image6 (Input Parameter): The image placed in the second row, third column of the grid. |
image7 | IMAGE | Yes | - | - | image7 (Input Parameter): The image placed in the third row, first column of the grid. |
image8 | IMAGE | Yes | - | - | image8 (Input Parameter): The image placed in the third row, second column of the grid. |
image9 | IMAGE | Yes | - | - | image9 (Input Parameter): The image placed in the third row, third column of the grid. |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| IMAGE | IMAGE | IMAGE (Output Parameter): The output 3x3 composite grid image. |
Usage Scenarios
In image generation workflows, this node is commonly used to create comparison charts or preview galleries. For example, after generating a set of images with different styles or parameters, you can input them all into this node to quickly synthesize a grid image. This allows for intuitive comparison of differences between various generation results or for creating presentation materials.
Notes
All input images should have the same height and width to ensure the final grid is neat. If the input image dimensions are inconsistent, the concatenation operation will still proceed, but it may result in grid misalignment or image distortion.
Image Grid Composite 3x3 Node Source Code Link
The Image Grid Composite 3x3 node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.