Save Image With Metadata:
The Sage_SaveImageWithMetadata node is designed to facilitate the saving of images to disk while embedding rich metadata within them. This node is particularly beneficial for AI artists and developers who wish to preserve detailed information about the image creation process, such as parameters used, prompts, and additional metadata. By embedding metadata directly into the image file, this node ensures that all relevant information is retained and easily accessible for future reference or analysis. This capability is crucial for maintaining a comprehensive record of the creative process, enabling better reproducibility and understanding of the image generation workflow.
Save Image With Metadata Input Parameters:
images
This parameter accepts the images that you wish to save. It is the primary input and determines which images will be processed and stored with metadata. There are no specific minimum or maximum values, as it depends on the images you provide.
filename_prefix
This parameter allows you to specify a prefix for the filenames of the saved images. By default, it is set to "image_". This helps in organizing and identifying images easily, especially when saving multiple files.
include_node_metadata
This boolean parameter determines whether node-specific metadata should be included in the saved image. By default, it is set to True, meaning that metadata related to the node's operation will be embedded in the image, providing context about the image generation process.
include_extra_pnginfo_metadata
This boolean parameter specifies whether additional PNG info metadata should be included in the image. It is set to False by default. Enabling this option allows for the inclusion of extra metadata fields, which can be useful for storing supplementary information.
save_text
This boolean parameter indicates whether accompanying text files containing metadata should be saved alongside the images. By default, it is set to False. When enabled, it provides a separate text file with metadata, which can be useful for documentation or analysis purposes.
param_metadata
This string parameter allows you to embed specific metadata into the image. It is an optional field where you can input any relevant information you wish to associate with the image. By default, it is an empty string.
extra_metadata
This string parameter is used to include any additional metadata that you want to embed in the image. Like param_metadata, it is optional and defaults to an empty string, allowing for flexibility in the type of information you wish to store.
Save Image With Metadata Output Parameters:
This node does not produce any direct output parameters. Its primary function is to save images with embedded metadata, so the result is the saved image files themselves, which contain the specified metadata.
Save Image With Metadata Usage Tips:
- Ensure that the
filename_prefixis descriptive enough to help you identify the images later, especially when dealing with large batches. - Use the
include_node_metadataoption to retain detailed information about the image generation process, which can be invaluable for future reference or replication of results. - Consider enabling
save_textif you need a separate record of the metadata for documentation or sharing purposes.
Save Image With Metadata Common Errors and Solutions:
Metadata not saved
- Explanation: This issue may occur if metadata embedding is disabled in the application settings.
- Solution: Ensure that metadata embedding is enabled in the application settings and that the
disable_metadataflag is not set.
Image not saved
- Explanation: This could happen if the file path is incorrect or if there are permission issues.
- Solution: Verify that the file path is correct and that you have the necessary permissions to write to the specified directory.
Invalid metadata format
- Explanation: This error might occur if the metadata provided is not in a valid format.
- Solution: Check that all metadata inputs are correctly formatted and do not contain unsupported characters or structures.
