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

ComfyUI Node: Image Save with Prompt File (WLSH)

Class Name

Image Save with Prompt 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 File (WLSH) Description

Automates saving images with metadata, customizable filenames, and directories for organized workflow and easy reproduction.

Image Save with Prompt File (WLSH):

The Image Save with Prompt File (WLSH) node is designed to streamline the process of saving generated images along with their associated metadata, such as prompts, model names, and other relevant information. This node is particularly useful for AI artists who want to keep a detailed record of the parameters used to create each image, ensuring that they can easily reproduce or reference their work in the future. By automatically generating filenames and directories based on customizable parameters, this node helps maintain an organized workflow and reduces the risk of losing important data. Additionally, it supports various image formats and quality settings, making it versatile for different use cases.

Image Save with Prompt File (WLSH) Input Parameters:

images

This parameter accepts the list of images that you want to save. Each image in the list will be processed and saved according to the specified settings.

positive

This parameter is used to input the positive prompt associated with the images. It helps in documenting the creative input that led to the generation of the images. The default value is "unknown".

negative

This parameter is used to input the negative prompt associated with the images. It helps in documenting any constraints or exclusions applied during the image generation process. The default value is "unknown".

seed

This parameter specifies the seed value used for generating the images. It is crucial for reproducing the exact same images in future runs. The default value is -1, indicating that no specific seed was used.

modelname

This parameter records the name of the model used to generate the images. It is useful for tracking which model produced which images, especially when multiple models are in use. The default value is "unknown".

counter

This parameter is used to differentiate between multiple images saved in the same session. It helps in creating unique filenames for each image. The default value is 0.

filename

This parameter allows you to specify a custom filename for the saved images. If left empty, the node will generate a filename based on other parameters like seed, modelname, and counter.

path

This parameter specifies the directory path where the images will be saved. If the specified path does not exist, the node will create it. The default value is an empty string, which means the images will be saved in the default output directory.

time_format

This parameter defines the format for the timestamp included in the filenames. It follows the standard Python datetime format codes. 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, particularly relevant for lossy formats like JPEG. The value ranges from 1 to 100, with 100 being the highest quality. The default value is 100.

prompt

This parameter allows you to include additional prompt information in the saved metadata. It can be useful for adding context or notes about the image generation process.

extra_pnginfo

This parameter accepts additional metadata to be embedded in the PNG files. It is useful for storing extra information that might be relevant for future reference.

Image Save with Prompt File (WLSH) Output Parameters:

ui

This output parameter returns a dictionary containing the paths of the saved images. It helps you quickly locate and access the saved files through the user interface.

Image Save with Prompt File (WLSH) Usage Tips:

  • Ensure that the path parameter is correctly set to avoid saving images in unintended directories.
  • Use the seed parameter to reproduce exact images in future sessions, which is particularly useful for iterative design processes.
  • Customize the time_format parameter to include timestamps in filenames, helping you keep track of when each image was generated.
  • Utilize the extra_pnginfo parameter to embed additional metadata, making it easier to reference specific details about the image generation process later.

Image Save with Prompt 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.
  • Solution: The node will automatically create the missing directory. Ensure that the path is correctly specified to avoid this message in the future.

Invalid file extension specified.

  • Explanation: This error occurs when an unsupported file extension is provided.
  • Solution: Use common file extensions like 'png' or 'jpg' to avoid this error.

Failed to save image due to invalid quality setting.

  • Explanation: This error occurs when the quality parameter is set outside the valid range of 1 to 100.
  • Solution: Ensure that the quality parameter is set within the valid range to successfully save the image.

Missing required parameter: images.

  • Explanation: This error occurs when the images parameter is not provided.
  • Solution: Ensure that you pass a list of images to the node for processing and saving.

Image Save with Prompt 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.