ComfyUI saves generated images to the output folder inside the ComfyUI directory, for example ComfyUI/output.
Change the location
python main.py --output-directory /data/comfy-output
--output-directory sets the output folder and overrides --base-directory. Related flags from cli_args.py: --input-directory, --temp-directory and --user-directory. --base-directory moves models, custom nodes, input, output, temp and user directories at once.
File names
The Save Image node's filename_prefix input defaults to ComfyUI and can include formatting such as %date:yyyy-MM-dd% or values from other nodes.
Output carries the workflow
Saved PNGs embed the workflow, so you can load a generated image back to recover the graph and seed (README). Workflows themselves are stored elsewhere: where ComfyUI workflows are saved.
New to ComfyUI? Start with how to use ComfyUI, and see the ComfyUI custom node install guide for what to add next.
Sources
- ComfyUI folder_paths.py (output_directory). github.com
- ComfyUI cli_args.py (directory flags). github.com
- ComfyUI nodes.py (SaveImage). github.com
- ComfyUI README: Notes. github.com