ComfyUI  >  Nodes  >  WAS Node Suite >  Image Save

ComfyUI Node: Image Save

Class Name

Image Save

Category
WAS Suite/IO
Author
WASasquatch (Account age: 4688 days)
Extension
WAS Node Suite
Latest Updated
8/25/2024
Github Stars
1.1K

How to Install WAS Node Suite

Install this extension via the ComfyUI Manager by searching for  WAS Node Suite
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter WAS Node Suite 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 Description

Facilitates customizable saving of images in ComfyUI, allowing output path, file name, format, and quality settings.

Image Save:

The Image Save node is designed to facilitate the saving of images generated or processed within the ComfyUI environment. This node allows you to specify various parameters to customize the saving process, such as the output path, file name prefix, image format, and quality settings. By providing a flexible and user-friendly interface, the Image Save node ensures that your images are stored efficiently and according to your preferences. This node is particularly useful for AI artists who need to manage and organize their generated images systematically, ensuring that each image is saved with the desired attributes and in the correct location.

Image Save Input Parameters:

images

This parameter accepts the images you want to save. It is essential to provide the images in the correct format to ensure they are saved properly.

output_path

Specifies the directory where the images will be saved. If left empty, the default directory will be used. This parameter allows you to organize your saved images by directing them to specific folders.

filename_prefix

Defines the prefix for the saved image files. This helps in categorizing and identifying images easily. The default value is "ComfyUI".

filename_delimiter

Sets the delimiter used between different parts of the filename. The default value is an underscore (_), which helps in maintaining a clear and readable file naming convention.

extension

Determines the file format for the saved images. Options include png, jpg, and others. The default value is png, which is widely used for its lossless compression.

dpi

Specifies the dots per inch (DPI) for the saved images. This parameter affects the print quality of the images. The default value is 96.

quality

Sets the quality of the saved images, particularly for lossy formats like jpg. The value ranges from 1 to 100, with 100 being the highest quality. The default value is 100.

optimize_image

A boolean parameter that determines whether to optimize the image for size. The default value is true, which helps in reducing the file size without significant loss of quality.

lossless_webp

A boolean parameter that specifies whether to save WebP images in a lossless format. The default value is false.

prompt

An optional parameter to include a prompt or description with the saved image. This can be useful for documentation or reference purposes.

extra_pnginfo

Allows you to embed additional metadata into the saved PNG images. This can include information like creation date, author, or any other relevant data.

overwrite_mode

A boolean parameter that determines whether to overwrite existing files with the same name. The default value is false, which prevents accidental overwriting of files.

filename_number_padding

Specifies the number of digits to use for numbering files. This helps in maintaining a consistent file naming convention. The default value is 4.

filename_number_start

Defines the starting number for file numbering. This parameter is useful when you want to continue numbering from a specific point. The default value is false.

show_history

A boolean parameter that determines whether to show the history of saved images. The default value is false.

show_history_by_prefix

A boolean parameter that specifies whether to filter the history of saved images by the filename prefix. The default value is true.

embed_workflow

A boolean parameter that determines whether to embed the workflow information into the saved image. The default value is true.

show_previews

A boolean parameter that specifies whether to show previews of the saved images. The default value is true.

Image Save Output Parameters:

None

This node does not produce any direct output parameters. Its primary function is to save images to the specified location with the given parameters.

Image Save Usage Tips:

  • Ensure that the output_path is correctly specified to avoid saving images in unintended locations.
  • Use meaningful filename_prefix and filename_delimiter to keep your saved images organized and easily identifiable.
  • Adjust the quality parameter according to your needs, especially when saving images in lossy formats like jpg.
  • Enable optimize_image to reduce file size without compromising much on quality, which is useful for web usage.
  • Utilize the extra_pnginfo parameter to embed useful metadata into your images for better documentation and reference.

Image Save Common Errors and Solutions:

The image specified_path doesn't exist!

  • Explanation: This error occurs when the specified path for saving the image does not exist or is incorrect.
  • Solution: Verify that the output_path is correct and that the directory exists. Create the directory if it does not exist.

The image image does not exist!

  • Explanation: This error indicates that the image you are trying to save does not exist or is not correctly referenced.
  • Solution: Ensure that the images parameter is correctly set and that the images are in the correct format and accessible.

Failed to save image due to invalid file format!

  • Explanation: This error occurs when the specified file format is not supported or is incorrectly specified.
  • Solution: Check the extension parameter to ensure it is set to a valid and supported file format like png or jpg.

Overwrite mode is disabled, and file already exists!

  • Explanation: This error occurs when a file with the same name already exists, and the overwrite_mode is set to false.
  • Solution: Either enable overwrite_mode to allow overwriting existing files or change the filename_prefix or filename_number_start to avoid conflicts.

Image Save Related Nodes

Go back to the extension to check out more related nodes.
WAS Node Suite
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.