💾 Save Image:
The ArchAi3D_Save_Image node is designed to facilitate the saving of images with a variety of format options and advanced compression settings, making it a versatile tool for AI artists who need to manage image outputs efficiently. This node supports multiple image formats, including PNG, JPG, and WebP, each with customizable settings to optimize image quality and file size. For instance, it allows you to adjust compression levels for PNGs, optimize and set subsampling for JPGs, and choose between lossless and lossy compression for WebP images. Additionally, the node offers workflow embedding control, enabling you to embed metadata such as prompts and additional information directly into PNG files. This feature is particularly useful for maintaining a comprehensive record of the creative process. The node also includes robust filename generation and conflict resolution mechanisms to ensure that saved images are organized and easily retrievable. Overall, the ArchAi3D_Save_Image node is an essential component for managing image outputs in a structured and efficient manner, providing both flexibility and control over the saving process.
💾 Save Image Input Parameters:
format
The format parameter specifies the image format in which the output will be saved. It supports options such as "PNG", "JPG", and "WebP", each offering different capabilities and compression settings. Choosing the right format can impact the image quality and file size, with PNG being suitable for lossless compression and transparency, JPG for high-quality photographs with adjustable compression, and WebP for a balance between quality and file size with both lossless and lossy options.
png_compress_level
The png_compress_level parameter determines the level of compression applied to PNG images, ranging from 0 (no compression) to 9 (maximum compression). Higher compression levels result in smaller file sizes but may increase the time required to save the image. This parameter is crucial for optimizing storage space while maintaining image quality.
jpg_optimize
The jpg_optimize parameter is a boolean setting that, when enabled, optimizes the JPEG file to reduce its size without significantly affecting quality. This option is beneficial for minimizing storage requirements while preserving the visual integrity of the image.
jpg_subsampling
The jpg_subsampling parameter controls the chroma subsampling level for JPEG images, with options like "4:2:0 (default)", "4:2:2", and "4:4:4 (best quality)". Subsampling reduces the color information in the image to decrease file size, with lower subsampling values providing better color fidelity at the cost of larger file sizes.
embed_workflow
The embed_workflow parameter is a boolean option that, when enabled, embeds metadata such as prompts and additional information into PNG files. This feature is useful for documenting the creative process and ensuring that important details are preserved within the image file itself.
💾 Save Image Output Parameters:
ui
The ui output parameter provides a structured dictionary containing information about the saved images, including their filenames, subfolders, and types. This output is essential for tracking and managing the saved images, allowing you to easily access and organize your work within the ComfyUI environment.
💾 Save Image Usage Tips:
- To achieve the best balance between image quality and file size, experiment with different compression settings for each format. For example, use a higher
png_compress_levelfor images where file size is a priority, and adjustjpg_subsamplingto find the right balance for JPEGs. - Utilize the
embed_workflowfeature to keep a detailed record of your creative process, which can be invaluable for revisiting and understanding the steps taken to achieve a particular result.
💾 Save Image Common Errors and Solutions:
FileExistsError
- Explanation: This error occurs when the node attempts to save an image with a filename that already exists in the specified directory.
- Solution: The node automatically increments the filename counter to avoid overwriting existing files. Ensure that the directory has write permissions and sufficient space.
UnsupportedFormatError
- Explanation: This error is raised when an unsupported image format is specified in the
formatparameter. - Solution: Verify that the
formatparameter is set to one of the supported options: "PNG", "JPG", or "WebP". Double-check for any typos or case sensitivity issues.
MetadataEmbeddingError
- Explanation: This error can occur if there is an issue embedding metadata into a PNG file when
embed_workflowis enabled. - Solution: Ensure that the metadata being embedded is correctly formatted and does not contain unsupported characters. Check the prompt and additional information for any anomalies.
