Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate composite image grid from multiple images for visual summaries or collages with customizable layout and borders.
The Create Grid Image node is designed to generate a composite image by arranging multiple images into a grid format. This node is particularly useful for creating visual summaries or collages from a collection of images. By specifying various parameters, you can control the number of columns, the size of each cell, and the appearance of borders around each image. This functionality is beneficial for artists who want to present multiple artworks in a single, organized layout, making it easier to compare and showcase their work.
This parameter specifies the directory path where the images to be included in the grid are located. It is crucial to ensure that the path exists and contains the images you want to use. If the path does not exist, the node will not execute properly. There is no default value for this parameter, and it must be provided by the user.
This parameter allows you to define a pattern to match specific files within the directory. By default, it is set to "*", which means all files will be considered. You can use this to filter images based on their names or extensions.
This parameter determines whether to include images from subfolders within the specified directory. It accepts "true" or "false" as values, with the default being "false". Setting it to "true" will recursively search for images in all subdirectories.
This parameter sets the number of columns in the grid. The default value is 6. Adjusting this value will change the layout of the grid, affecting how many images are placed in each row.
This parameter defines the maximum size of each cell in the grid, in pixels. The default value is 256. This ensures that images are resized to fit within the specified dimensions, maintaining a uniform appearance.
This parameter specifies the width of the border around each image, in pixels. The default value is 3. Setting this to 0 will remove the border entirely.
This parameter sets the red component of the border color. The default value is 0. It ranges from 0 to 255, where 0 is no red and 255 is full red.
This parameter sets the green component of the border color. The default value is 0. It ranges from 0 to 255, where 0 is no green and 255 is full green.
This parameter sets the blue component of the border color. The default value is 0. It ranges from 0 to 255, where 0 is no blue and 255 is full blue.
The output is a single composite image in tensor format, representing the grid of images. This output can be used for further processing or directly saved and viewed. The grid image will have the specified number of columns, cell sizes, and border properties as defined by the input parameters.
images_path
is correct and contains the images you want to include in the grid.pattern_glob
parameter to filter specific types of images, such as ".jpg" or ".png".number_of_columns
to change the layout of your grid, depending on how many images you have and how you want them displayed.include_subfolders
to "true" if your images are organized in subdirectories and you want to include them all.max_cell_size
to ensure all images fit well within the grid without being too large or too small.border_red
, border_green
, and border_blue
parameters to match your desired aesthetic.<images_path>
does not exist!images_path
is correct and points to an existing directory containing the images you want to use.pattern_glob
.pattern_glob
parameter to ensure it correctly matches the filenames of the images you want to include.include_subfolders
parameter must be either "true" or "false".include_subfolders
parameter is set to either "true" or "false".border_red
, border_green
, and border_blue
must be between 0 and 255.© Copyright 2024 RunComfy. All Rights Reserved.