ComfyUI Node
Save Image Enhanced (DN)
Saves the input images to a specified directory with optional caption and filename counter.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| filename_prefix | STRING | ComfyUI_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_folder | STRING | output | Subfolder within ComfyUI's output directory, or an absolute path. |
| add_counter_suffix | BOOLEAN | true | If 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_padding | INT | 51–9 | Controls 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_overwrite | BOOLEAN | false | If True, allows overwriting existing files with the same name. If False, automatically increments the filename prefix to find a unique name. |
| caption_file_extensionopt | STRING | .txt | The extension for the caption file. |
| captionopt | STRING | Optional: String to save as a caption file alongside the image. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| last_filename_saved | STRING | — |