ComfyUI  >  Nodes  >  ImagesGrid >  ImagesGridByColumns

ComfyUI Node: ImagesGridByColumns

Class Name

ImagesGridByColumns

Category
ImagesGrid
Author
LEv145 (Account age: 2262 days)
Extension
ImagesGrid
Latest Updated
5/30/2024
Github Stars
0.1K

How to Install ImagesGrid

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

ImagesGridByColumns Description

Create visually appealing image grids with specified columns for structured presentation and comparison.

ImagesGridByColumns:

The ImagesGridByColumns node is designed to help you create a visually appealing grid of images by arranging them into a specified number of columns. This node is particularly useful when you have a collection of images and want to display them in a structured format, making it easier to compare and analyze them. By specifying the maximum number of columns, the node automatically calculates the necessary number of rows to accommodate all the images, ensuring a balanced and organized layout. This functionality is ideal for creating image galleries, contact sheets, or any scenario where a neat and orderly presentation of multiple images is required.

ImagesGridByColumns Input Parameters:

images

This parameter expects a list of images that you want to arrange into a grid. Each image should be in the format of a tensor. The images will be converted to a grid based on the specified number of columns and other parameters.

gap

The gap parameter defines the amount of space (in pixels) between each image in the grid. This helps to create a clear separation between images, making the grid more visually appealing. The default value is 0, and it must be a non-negative integer.

max_columns

The max_columns parameter specifies the maximum number of columns in the grid. The node will automatically calculate the number of rows needed to fit all the images based on this value. The default value is 1, and it must be a positive integer.

annotation (optional)

The annotation parameter allows you to add text annotations to the grid. This can include column and row labels, which can be useful for adding context or additional information to the images. The annotation should be in the format of a GRID_ANNOTATION object.

ImagesGridByColumns Output Parameters:

IMAGE

The output is a single image tensor representing the grid of images arranged according to the specified parameters. This grid image can be used for further processing, analysis, or display purposes.

ImagesGridByColumns Usage Tips:

  • To create a grid with a specific number of columns, set the max_columns parameter to your desired value. The node will handle the rest, ensuring all images fit within the specified columns.
  • Use the gap parameter to add spacing between images, which can enhance the visual separation and clarity of the grid.
  • If you want to add labels or annotations to your grid, make use of the annotation parameter to provide additional context or information for each row and column.

ImagesGridByColumns Common Errors and Solutions:

ValueError: Column text and row text is empty

  • Explanation: This error occurs when both column and row texts are not provided in the annotation.
  • Solution: Ensure that you provide either column texts, row texts, or both when using the annotation parameter.

IndexError: list index out of range

  • Explanation: This error can occur if the number of images provided does not match the expected grid dimensions.
  • Solution: Verify that the number of images you provide matches the grid dimensions calculated based on the max_columns parameter. Adjust the number of images or the max_columns value accordingly.

ImagesGridByColumns Related Nodes

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