Save Image Plus (UTK):
The SaveImagePlus_UTK node is designed to enhance your image-saving capabilities within the ComfyUI environment. This node allows you to save images in various formats such as PNG, JPEG, TIFF, and WEBP, providing flexibility and control over the output. It is particularly beneficial for AI artists who need to manage and organize large batches of images efficiently. The node supports batch processing, enabling you to save multiple images with unique filenames by incorporating batch numbers and counters. Additionally, it offers options to include metadata such as author, description, and prompts, which can be embedded into the image files. This feature is especially useful for maintaining detailed records of your creative process. The node also allows you to specify the compression level for PNGs and the quality for JPEGs and WEBPs, ensuring that you can balance between image quality and file size according to your needs.
Save Image Plus (UTK) Input Parameters:
images
This parameter represents the batch of images you wish to save. It is crucial as it determines the content that will be processed and stored by the node. The images are typically in a tensor format that is converted to a format suitable for saving.
filename
The filename parameter allows you to specify the base name for the saved image files. It supports placeholders like %batch_num% to automatically include batch numbers in filenames, ensuring each file is uniquely identifiable.
full_output_folder
This parameter specifies the directory path where the images will be saved. It is important to ensure that the path is correct and accessible to avoid any file-saving errors.
file_format
The file_format parameter determines the format in which the images will be saved. Options include "PNG", "JPEG", "TIFF", and "WEBP". Each format has its own advantages, such as lossless compression for PNG or smaller file sizes for JPEG.
dpi_tuple
This parameter allows you to set the DPI (dots per inch) for the saved images, which is important for print quality. It is specified as a tuple, typically in the form of (x, y).
png_compress_level
For PNG files, this parameter controls the level of compression applied. It ranges from 0 (no compression) to 9 (maximum compression), allowing you to manage the trade-off between file size and saving speed.
quality
This parameter is used for JPEG and WEBP formats to define the quality of the saved images. It typically ranges from 1 (lowest quality) to 100 (highest quality), affecting both the visual quality and file size.
save_workflow
A boolean parameter that, when enabled, saves the workflow metadata along with the image. This is useful for documenting the process and settings used to generate the image.
author
This parameter allows you to include the author's name in the image metadata, providing credit and context for the image's creation.
description
The description parameter lets you add a textual description to the image metadata, which can be useful for providing additional context or notes about the image.
prompt
This parameter is used to embed the prompt or initial input that led to the creation of the image, serving as a reference for the creative process.
extra_pnginfo
A dictionary parameter that allows you to include additional metadata in PNG files, offering further customization and information embedding.
Save Image Plus (UTK) Output Parameters:
ui
The ui output parameter provides a structured summary of the saved images, including filenames, subfolder paths, and file types. This output is essential for verifying that the images have been saved correctly and for further processing or organization within your workflow.
Save Image Plus (UTK) Usage Tips:
- Ensure that the
full_output_folderpath is correctly set and accessible to avoid file-saving errors. - Use the
filenameparameter's%batch_num%placeholder to automatically differentiate files in batch processing. - Adjust the
png_compress_levelandqualityparameters to balance between image quality and file size based on your needs. - Utilize the
extra_pnginfoparameter to embed custom metadata in PNG files for enhanced documentation.
Save Image Plus (UTK) Common Errors and Solutions:
FileNotFoundError
- Explanation: This error occurs when the specified
full_output_folderpath does not exist or is inaccessible. - Solution: Verify that the folder path is correct and that you have the necessary permissions to write to the directory.
ValueError: Invalid file format
- Explanation: This error is raised when an unsupported file format is specified in the
file_formatparameter. - Solution: Ensure that the
file_formatis set to one of the supported formats: "PNG", "JPEG", "TIFF", or "WEBP".
PermissionError
- Explanation: This error indicates that the node does not have permission to write files to the specified directory.
- Solution: Check the directory permissions and adjust them to allow write access, or choose a different directory with appropriate permissions.
