Image Save:
The ImageSaver node is designed to facilitate the efficient saving of images in various formats, providing a streamlined process for AI artists to store their creations. This node is particularly beneficial for those who need to manage multiple image outputs, as it supports batch processing and ensures that each image is saved with a unique filename to prevent overwriting. By offering support for popular image formats such as PNG, JPG, WEBP, and BMP, the ImageSaver node caters to a wide range of needs, whether you require high-quality lossless images or more compressed formats for web use. The node's ability to handle different quality settings allows you to balance between image fidelity and file size, making it a versatile tool in your image processing workflow.
Image Save Input Parameters:
images
This parameter expects a list of images that you want to save. The images should be in a format that can be processed by the node, typically as tensors or arrays that can be converted into image files. The node will iterate over this list and save each image individually.
path
The path parameter specifies the directory where the images will be saved. It is important to ensure that this path is valid and that you have write permissions to the directory. The path should not include the filename, as filenames are generated automatically based on the prefix and index.
prefix
This parameter allows you to define a prefix for the filenames of the saved images. The prefix is combined with an index number to create unique filenames for each image, preventing any overwriting of files.
format
The format parameter determines the file format in which the images will be saved. Options include "PNG", "JPG", "WEBP", and "BMP". Each format has its own characteristics, such as compression and quality, which can affect the final output.
quality
This parameter controls the quality of the saved images, particularly for formats like JPG and WEBP that support adjustable quality settings. The quality can be set to values like 100, 95, 90, down to 50, with 100 being the highest quality. Adjusting this parameter allows you to manage the trade-off between image quality and file size.
Image Save Output Parameters:
None
The ImageSaver node does not produce any direct output parameters. Its primary function is to save images to the specified directory, and it does not return any data upon completion.
Image Save Usage Tips:
- Ensure that the path you specify is correct and accessible to avoid errors during the saving process.
- Use the prefix parameter to organize your saved images systematically, especially when dealing with batch processing.
- Choose the appropriate format and quality settings based on your needs; for instance, use PNG for lossless quality and JPG for smaller file sizes.
Image Save Common Errors and Solutions:
Error saving <filepath>: <error_message>
- Explanation: This error occurs when there is an issue with saving the image to the specified filepath. It could be due to an incorrect path, lack of write permissions, or unsupported format.
- Solution: Verify that the path is correct and that you have the necessary permissions to write to the directory. Ensure that the format specified is supported and correctly spelled.
Filepath does not exist
- Explanation: This error indicates that the directory specified in the path parameter does not exist.
- Solution: Double-check the path to ensure it is correct and that the directory exists. Create the directory if it does not exist before attempting to save images.
