Nodes/comfyui-fvmtools/Batch Save Image
ComfyUI Node

Batch Save Image

Writes, moves or copies one picture into a directory decided upstream. Move mode tidies the source folder as it goes.

By ping1979ping·Created 6 months ago·Updated 2 days ago· 1
Batch Save Image
  • image
  • image
  • saved_path
  • written
◄directory►
◄modemove►
◄filename_prefix►
◄formatkeep►
◄quality95►
◄overwritefalse►
◄enabledtrue►
◄source_path►
◄report►
CategoryFVM Tools/Batch

Inputs (10)

NameTypeDefaultDescription
directorySTRINGTarget folder — wire this to the router's target_dir or the loader's pass_dir/fail_dir.
modeCOMBOmovesave: write the image tensor as a new file. move: move the original file (tidies the source folder). copy: copy the original, source stays.
filename_prefixSTRINGPrepended to the filename. Empty keeps the original name.
formatCOMBOkeepOutput format in save mode. keep: reuse the source file's extension, PNG if unknown.
qualityINT951–100JPEG/WebP quality in save mode.
overwriteBOOLEANfalseOff: a colliding name gets _001, _002, … On: the existing file is replaced.
enabledBOOLEANtrueOff: do nothing and pass the image through. Lets one branch of a fork stay idle.
imageoptIMAGERequired for save mode.
source_pathoptSTRINGThe loader's source_path. Required for move/copy.
reportoptSTRINGWritten next to the picture as a .txt sidecar, so the folder records why each file landed there.

Outputs (3)

NameTypeDescription
imageIMAGE—
saved_pathSTRING—
writtenBOOLEAN—