Visit ComfyUI Online for ready-to-use ComfyUI environment
Automate saving image grids in various formats with options for output path, naming, and compression levels.
The CR XY Save Grid Image node is designed to save a grid of images generated from various sources, such as folders or other nodes, into a specified file format. This node is particularly useful for AI artists who need to organize and save their generated images in a structured manner. By leveraging this node, you can automate the process of saving image grids, ensuring consistency and efficiency in your workflow. The node supports multiple file formats, including PNG, JPG, WEBP, and TIFF, and provides options for setting the output path, file naming conventions, and image compression levels. This functionality is essential for managing large volumes of images, making it easier to preview, store, and share your creative outputs.
The mode
parameter determines the operation mode of the node. It can be set to either "Preview" or "Save". When set to "Preview", the output path is directed to a temporary directory, allowing you to quickly view the generated grid without saving it permanently. When set to "Save", the grid is saved to the specified output directory. This parameter helps you control whether you want to temporarily preview the grid or save it for future use.
The output_folder
parameter specifies the folder where the image grid will be saved. This folder is created within the output directory defined by the system. If the folder does not exist, it will be created automatically. This parameter ensures that your saved images are organized in a specific location, making it easier to manage and retrieve them later.
The image
parameter is the input image or a list of images that will be arranged into a grid. This parameter accepts images in tensor format, which are then converted to a format suitable for saving. The images provided here form the content of the grid that will be saved.
The file_format
parameter defines the format in which the image grid will be saved. Supported formats include 'png', 'webp', 'jpg', and 'tif'. Each format has its own set of parameters for compression and quality, which are applied during the saving process. This parameter allows you to choose the most appropriate format for your needs, balancing quality and file size.
The output_path
parameter allows you to specify a custom path where the image grid will be saved. If this path is not provided, the node uses the default output directory. This parameter is useful when you need to save the grid to a specific location outside the default directory structure.
The filename_prefix
parameter sets the prefix for the saved image file names. This prefix is followed by a numeric counter to ensure unique file names. By setting a custom prefix, you can easily identify and categorize your saved grids based on their content or creation context.
The trigger
parameter is a boolean flag that controls whether the node should execute the saving process. If set to False
, the node will not perform any action. This parameter is useful for conditional execution, allowing you to control when the grid should be saved based on other conditions in your workflow.
The preview
parameter provides a dictionary containing metadata about the saved image grid. This includes the filename, subfolder, and type of the saved image. The preview output is useful for quickly accessing and displaying information about the saved grid without manually navigating the file system.
trigger
parameter is set to True
to enable the saving process.mode
parameter to switch between previewing the grid and saving it permanently.filename_prefix
to organize your saved grids based on different projects or categories.file_format
to balance between image quality and file size.{output_path}
does not existimage
parameterimage
parameter is empty or not provided.image
parameter to create the grid.file_format
file_format
parameter contains an unsupported format.© Copyright 2024 RunComfy. All Rights Reserved.