EZ Filename
Timestamped filenames without the naming hacks
- trigger
- STRING
EZ Filename is a tiny utility that builds a save path for you: folder + filename, with %timestamp% replaced by the UTC time the image was generated. That's the whole job, and it's a job worth automating because the alternative is either typing filenames by hand or fighting ComfyUI's filename_prefix date tokens in your head.
Three inputs:
- trigger (any type) - the re-run pedal. This node only executes when its trigger input changes, so you wire the output of your generation into it. New image → new timestamp → fresh filename. Without a trigger the node sits there and does nothing, which is by design.
- folder (STRING, default "") - the subfolder under ComfyUI's output directory where images land.
- filename (STRING, default
%timestamp%) - the name, with%timestamp%standing in for a UTC timestamp formatted asYYYYMMDDHHMMSS.
The output is a single STRING: the full folder/filename prefix, ready to plug into any SaveImage node's filename_prefix input.
How it works
On execution it takes folder + "/" + filename, swaps every %timestamp% for the current UTC time, and returns the result. So with the defaults you get something like 20260826123045. Wire that into SaveImage and every render gets its own collision-free filename - the classic "I want to keep them all, not overwrite" workflow.
Two implementation notes that explain behavior you might hit:
- The timestamp is computed at execution time, and execution is gated by the trigger. So the timestamp reflects when the node ran, not when the image finished - wire the trigger from the generated image and they'll be effectively the same.
- The path is joined with a unix-style
/. The source has a TODO about Windows compatibility, so if you're on Windows and paths look wrong, that's a known rough edge, not something you did.
Where it sits in the pack
It does double duty. EZ Generate Save - the pack's generate-and-save node - builds an EZ Filename internally, so if you use that node you never touch this one. EZ Filename is for the rest of the world: you're using EZ Generate (which returns images but doesn't save) plus a stock SaveImage, and you want sane filenames without a pile of text nodes. It also works fully standalone - no EZ nodes required - which makes it a handy drop-in even in non-Prompt-Helpers workflows.
Installing it
It ships with the Prompt Helpers pack. In ComfyUI Manager search "Prompt Helpers" (Pauan/comfyui-prompt-helpers), install, restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/Pauan/comfyui-prompt-helpers
Restart ComfyUI. No model downloads, no heavy dependencies - the pack needs PyYAML and desktop-notifier and ComfyUI 0.8.0+.
The one thing that trips people is forgetting the trigger. If you've wired EZ Filename's output to a SaveImage and nothing ever saves with a new name, check whether the trigger is connected - a floating trigger means the node runs once and then sleeps forever.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| trigger | * | When this input changes, it will re-run the EZ Filename. | |
| folder | STRING | The folder that the images will be saved in. | |
| filename | STRING | %timestamp% | The filename for the images. %timestamp% is a UTC timestamp when the image was generated |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |