Visit ComfyUI Online for ready-to-use ComfyUI environment
Visualize and save grid-based layouts on images, simplifying grid management for AI artists.
The GridDisplayAndSave
node is designed to help you visualize and save grid-based layouts on images. This node is particularly useful for AI artists who need to overlay grid structures on images for various purposes, such as design alignment, compositional analysis, or other creative tasks. The node takes in grid data and an image, draws the specified grids on the image, and then saves the resulting image to a temporary directory. Additionally, it generates a JSON file containing the grid data and image dimensions, which can be useful for further processing or documentation. This node simplifies the process of managing and visualizing grid layouts, making it easier for you to focus on your creative work.
This parameter accepts a string input that can be multiline. It is used to specify labels for each grid that will be drawn on the image. These labels help in identifying and differentiating between various grids. The default value is an empty string, and it is a required input.
This parameter accepts a list of grid coordinates. Each grid is defined by a set of four floating-point numbers representing the top-left and bottom-right corners of the grid. These coordinates are used to draw the grids on the image. The grids parameter is essential for the node to function correctly, as it defines the layout that will be visualized and saved.
This parameter accepts an image tensor that serves as the canvas on which the grids will be drawn. The image should be in a format that can be converted to a PIL image for processing. This input is crucial as it provides the background on which the grid structures will be overlaid.
This output parameter provides a dictionary containing metadata about the saved image and grid data. It includes the filename of the saved image, the subfolder where it is stored, and the type of storage (temporary). Additionally, it contains the width and height of the image and the grid data in JSON format. This output is useful for tracking and managing the saved files and their associated data.
This output parameter is a tuple that includes the new grids, labels, and the image tensor. The new grids are the modified grid coordinates after applying any padding or adjustments. The labels are the same as those provided in the input, and the image tensor is the final image with the grids drawn on it. This output is useful for further processing or visualization within your workflow.
© Copyright 2024 RunComfy. All Rights Reserved.