Current location: Home> ComfyUI Tutorial> How to save an image by path in ComfyUI?

How to save an image by path in ComfyUI?

Author: LoRA Time: 21 Mar 2025

How to save an image by path in ComfyUI?

Solution

1. Use the Save Image node

Select the "Save Image" node

image.png

Enter the relative path

Directory Path Field: Enter the relative path to the image folder.

Format: {your-folder-name}/{your-image-name}

image.png

For example: If your folder name is "Test1" and the image name is "001", enter: Test1/001

Then you will find your image in the folder ComfyUI/output/Test1

image.png

2. Use other nodes (e.g., "string", "set", "get")

Enter an absolute path

1. Directory path field: Enter the absolute path to the image folder.

2. Format: /workspace/ComfyUI/output/{your-folder-name}

Important reminder:

Make sure your output path is in /workspace/ComfyUI/output. Don't create your own path!

Error path:

/workspace/ComfyUI/videos❌

/workspace/ComfyUI/shots❌

/workspace/ComfyUI/results❌

Only correct paths:

/workspace/ComfyUI/output✅

Using the wrong path will cause the image to not be displayed in the file browser and to be saved between sessions. Be sure to double check that the path is correctly set to /workspace/ComfyUI/output/{your-folder-name}.

For example: If your folder name is "0501", the absolute path should be /workspace/ComfyUI/output/0501