Nodes/ComfyUI-MaxedOut/Save Image (Dataset) MXD
ComfyUI Node

Save Image (Dataset) MXD

Save images under an exact filename with no prefix or counter, for round-tripping image+caption datasets: load from a folder, process, save back using the same base name so the sidecar .txt still matches.

By Maxed-Out-99·Created about a year ago·Updated 9 days ago· 9
Save Image (Dataset) MXD
  • images
  • filename
filename
sourceinputs
subfolder
embed_workflowfalse
CategoryMXD/Image

Inputs (5)

NameTypeDefaultDescription
imagesIMAGEImages to save.
filenameSTRINGExact base filename to save as. Any extension is stripped and replaced with .png. Connect the 'filename' output of Load Image (From Folder) MXD to keep dataset pairing with a sidecar .txt.
sourceCOMBOinputsFolder root to save into.
subfolderSTRINGOptional subfolder under the source root, e.g. 'flux_processed'. Use a different subfolder than your source images so you don't overwrite the originals.
embed_workflowoptBOOLEANfalseEmbed workflow metadata in the saved PNG.

Outputs (1)

NameTypeDescription
filenameSTRINGThe filename(s) written, one per line if the batch had more than one image.