ComfyUI  >  Nodes  >  WAS Node Suite >  Create Grid Image from Batch

ComfyUI Node: Create Grid Image from Batch

Class Name

Create Grid Image from Batch

Category
WAS Suite/Image/Process
Author
WASasquatch (Account age: 4688 days)
Extension
WAS Node Suite
Latest Updated
8/25/2024
Github Stars
1.1K

How to Install WAS Node Suite

Install this extension via the ComfyUI Manager by searching for  WAS Node Suite
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter WAS Node Suite 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

Create Grid Image from Batch Description

Efficiently organize and visualize multiple images in a grid format for AI artists.

Create Grid Image from Batch:

The Create Grid Image from Batch node is designed to help you efficiently organize and visualize multiple images by arranging them into a grid format. This node is particularly useful for AI artists who need to compile a large number of images into a single, cohesive visual representation. By specifying various parameters such as the number of columns, cell size, and border properties, you can customize the appearance of the grid to suit your needs. This node simplifies the process of creating a grid image, saving you time and effort while ensuring a professional and organized output.

Create Grid Image from Batch Input Parameters:

images_path

This parameter specifies the directory path where the images are located. It is essential to provide a valid path to ensure the node can access and process the images. If the path does not exist, the node will return an error.

pattern_glob

This parameter allows you to define a pattern to match specific image files within the directory. By default, it is set to "*", which means all files will be considered. You can customize this pattern to include only certain types of files or filenames.

include_subfolders

This parameter determines whether the node should include images from subfolders within the specified directory. Set to "false" by default, you can change it to "true" if you want to include images from subfolders.

number_of_columns

This parameter defines the number of columns in the grid. The default value is 6, but you can adjust it to fit your desired layout. Increasing the number of columns will result in more images per row, while decreasing it will result in fewer images per row.

max_cell_size

This parameter sets the maximum size of each cell in the grid. The default value is 256 pixels. Adjusting this value will change the dimensions of each image cell, allowing you to control the overall size of the grid image.

border_width

This parameter specifies the width of the border around each image cell. The default value is 3 pixels. Setting this value to 0 will remove the border entirely.

border_red

This parameter sets the red component of the border color. The default value is 0. You can adjust this value to change the color of the border.

border_green

This parameter sets the green component of the border color. The default value is 0. You can adjust this value to change the color of the border.

border_blue

This parameter sets the blue component of the border color. The default value is 0. You can adjust this value to change the color of the border.

Create Grid Image from Batch Output Parameters:

IMAGE

The output of this node is a single image tensor representing the grid of images. This tensor can be used for further processing or visualization within your AI art projects. The grid image will reflect the specified input parameters, including the number of columns, cell size, and border properties.

Create Grid Image from Batch Usage Tips:

  • Ensure the images_path is correct and accessible to avoid errors.
  • Use the pattern_glob parameter to filter specific types of images, such as ".jpg" or ".png".
  • Adjust the number_of_columns to fit the desired layout and ensure the grid is visually appealing.
  • Customize the max_cell_size to control the overall size of the grid image, especially if you have images of varying dimensions.
  • Experiment with border colors and widths to enhance the visual separation between images in the grid.

Create Grid Image from Batch Common Errors and Solutions:

The grid image path <images_path> does not exist!

  • Explanation: The specified directory path for the images does not exist.
  • Solution: Verify that the images_path is correct and that the directory exists. Ensure there are no typos or missing directories in the path.

No images found matching the pattern

  • Explanation: No images in the specified directory match the pattern_glob.
  • Solution: Check the pattern_glob to ensure it correctly matches the filenames of the images you want to include. Adjust the pattern if necessary.

Invalid border color values

  • Explanation: The values for border_red, border_green, or border_blue are not within the valid range (0-255).
  • Solution: Ensure that the color values are integers between 0 and 255. Adjust any values that fall outside this range.

Create Grid Image from Batch Related Nodes

Go back to the extension to check out more related nodes.
WAS Node Suite
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.