Visit ComfyUI Online for ready-to-use ComfyUI environment
Merge smaller image tiles seamlessly into larger canvas with specified layout and index for cohesive appearance.
The ETN_MergeImageTile node is designed to seamlessly integrate a smaller image tile into a larger image canvas based on a specified layout and index. This node is particularly useful for tasks that involve working with subdivided images, such as image processing, editing, or AI-based image generation. By allowing you to merge individual tiles back into the main image, it ensures that the final output maintains a cohesive and unified appearance. The primary function of this node is to take a tile and place it at the correct position within the larger image, blending it smoothly to avoid visible seams or artifacts.
This parameter represents the main image canvas into which the tile will be merged. It is of type IMAGE
and serves as the base image that will be updated with the new tile. The image should be a tensor that can accommodate the tile at the specified index.
The layout
parameter defines the tiling structure of the main image. It is of type TILE_LAYOUT
and provides the necessary information about how the image is divided into tiles, including the size and position of each tile. This layout ensures that the tile is placed correctly within the main image.
The index
parameter specifies the position within the layout where the tile should be merged. It is of type INT
with a minimum value of 0. This index must be within the range of the total number of tiles defined by the layout. It determines the exact location in the main image where the tile will be inserted.
This parameter represents the smaller image tile that will be merged into the main image. It is of type IMAGE
and should match the dimensions expected by the layout at the specified index. The tile is blended into the main image to ensure a smooth transition.
The output parameter is the updated main image with the tile merged into it. It is of type IMAGE
and reflects the main image after the specified tile has been integrated at the correct position. This ensures that the final image maintains a cohesive and unified appearance.
index
parameter is within the valid range of the layout to avoid errors.TILE_LAYOUT
to maintain uniformity in the final image.tile
match the expected size for the specified index in the layout to ensure proper blending.{index}
out of range© Copyright 2024 RunComfy. All Rights Reserved.