Nodes/comfyui-save-image-enhanced/Save Image Enhanced (DN)
ComfyUI Node

Save Image Enhanced (DN)

Saves the input images to a specified directory with optional caption and filename counter.

By KY-2000·Created 12 months ago·Updated 12 months ago· 1
Save Image Enhanced (DN)
  • images
  • last_filename_saved
filename_prefixComfyUI_DN_%date:yyyy-MM-dd%
output_folderoutput
add_counter_suffixtrue
counter_padding5
allow_overwritefalse
caption_file_extension.txt
caption
CategoryDivergent Nodes 👽/Image

Inputs (8)

NameTypeDefaultDescription
imagesIMAGE
filename_prefixSTRINGComfyUI_DN_%date:yyyy-MM-dd%The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes. Supports %batch_num%.
output_folderSTRINGoutputSubfolder within ComfyUI's output directory, or an absolute path.
add_counter_suffixBOOLEANtrueIf True, adds an incrementing numerical suffix (_00001_) to the filename to prevent overwriting. If the filename_prefix ends with a number, that number is treated as the initial counter value.
counter_paddingINT51–9Controls the minimum number of digits (with leading zeros) for the counter suffix added by 'add_counter_suffix'. For example, padding of 3 will produce _001_, _002_, etc.
allow_overwriteBOOLEANfalseIf True, allows overwriting existing files with the same name. If False, automatically increments the filename prefix to find a unique name.
caption_file_extensionoptSTRING.txtThe extension for the caption file.
captionoptSTRINGOptional: String to save as a caption file alongside the image.

Outputs (1)

NameTypeDescription
last_filename_savedSTRING