ComfyUI > Nodes > wlsh_nodes > Image Save with Prompt/Info File (WLSH)

ComfyUI Node: Image Save with Prompt/Info File (WLSH)

Class Name

Image Save with Prompt_Info File (WLSH)

Category
WLSH Nodes/IO
Author
wallish77 (Account age: 2229days)
Extension
wlsh_nodes
Latest Updated
2024-06-19
Github Stars
0.08K

How to Install wlsh_nodes

Install this extension via the ComfyUI Manager by searching for wlsh_nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter wlsh_nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Save with Prompt/Info File (WLSH) Description

Automates saving images with prompt info for AI artists, enhancing workflow and organization.

Image Save with Prompt_Info File (WLSH):

The Image Save with Prompt_Info File (WLSH) node is designed to streamline the process of saving generated images along with their associated prompt information. This node is particularly useful for AI artists who want to keep a detailed record of the prompts used to generate each image, including positive and negative prompts, model names, and other metadata. By automatically creating and organizing directories, and embedding prompt information into the saved files, this node ensures that your creative process is well-documented and easily retrievable. The main goal of this node is to enhance your workflow by providing a seamless way to save and manage your generated images and their corresponding prompt details.

Image Save with Prompt_Info File (WLSH) Input Parameters:

images

This parameter accepts the images that you want to save. It is a required input and should be a list of image objects generated by your AI model. The images will be saved to the specified directory with the given filename and format.

positive

This parameter is for the positive prompt text used during the image generation. It helps in documenting the creative input that led to the final image. The default value is "unknown".

negative

This parameter is for the negative prompt text used during the image generation. It helps in documenting any constraints or exclusions applied during the creative process. The default value is "unknown".

seed

This parameter is the seed value used for the image generation. It ensures reproducibility of the generated images. The default value is -1, indicating that no specific seed was used.

modelname

This parameter specifies the name of the AI model used to generate the images. It helps in tracking which model produced which images. The default value is "unknown".

counter

This parameter is a counter that can be used to differentiate between multiple images saved in the same session. It helps in organizing and naming the files uniquely. The default value is 0.

filename

This parameter specifies the base name for the saved image files. The final filename will be constructed using this base name along with other metadata like seed and model name. The default value is an empty string.

path

This parameter specifies the directory path where the images will be saved. If the directory does not exist, it will be created automatically. The default value is an empty string.

time_format

This parameter defines the format for the timestamp that will be included in the filename. It follows the standard Python datetime format. The default value is "%Y-%m-%d-%H%M%S".

extension

This parameter specifies the file extension for the saved images. Common options include 'png' and 'jpg'. The default value is 'png'.

quality

This parameter sets the quality of the saved images, applicable mainly for lossy formats like 'jpg'. The value ranges from 1 to 100, with 100 being the highest quality. The default value is 100.

prompt

This parameter is an optional field where you can provide additional prompt information that you want to save along with the images. The default value is None.

extra_pnginfo

This parameter allows you to include extra metadata in the saved PNG files. It is an optional field and the default value is None.

Image Save with Prompt_Info File (WLSH) Output Parameters:

ui

This output parameter returns a dictionary containing the paths of the saved images. It helps in verifying that the images have been saved correctly and provides an easy way to access them.

Image Save with Prompt_Info File (WLSH) Usage Tips:

  • Ensure that the path parameter is set to a valid directory to avoid any issues with file saving.
  • Use the seed parameter to keep track of the exact settings used for image generation, which can be useful for reproducing results.
  • Adjust the quality parameter based on your needs; higher quality settings are better for final outputs, while lower settings can be used for drafts or previews.
  • Utilize the extra_pnginfo parameter to embed additional metadata that might be useful for future reference or for sharing with collaborators.

Image Save with Prompt_Info File (WLSH) Common Errors and Solutions:

The path <specified_path> doesn't exist! Creating directory.

  • Explanation: This message indicates that the specified directory path does not exist and the node is creating it automatically.
  • Solution: No action is needed as the node handles the creation of the directory. Ensure that the path is correctly specified to avoid any issues.

Error: Invalid file extension

  • Explanation: This error occurs if the specified file extension is not supported.
  • Solution: Ensure that the extension parameter is set to a valid file format like 'png' or 'jpg'.

Error: Failed to save image

  • Explanation: This error indicates that there was an issue while saving the image files.
  • Solution: Check the path, filename, and extension parameters to ensure they are correctly specified. Verify that you have write permissions to the specified directory.

Image Save with Prompt/Info File (WLSH) Related Nodes

Go back to the extension to check out more related nodes.
wlsh_nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.