πΎ 3. Save Image (Smart Name)
A save node that names files after the artist β and survives Windows
- images
This is the quiet one in the Artist-Tester pack, and it exists to solve a dumb, painful problem: ComfyUI's built-in Save Image will happily take artist:wlop as a filename prefix, and on Windows a : in a filename is a hard error. SaveImageWithArtistTag is a drop-in replacement for the built-in save node that scrubs that stuff out before anything hits the filesystem.
What it does
It subclasses ComfyUI's own SaveImage - same PNG output to ComfyUI/output/, same embedded metadata - but runs your filename_prefix through a sanitizer first:
:becomes-(soartist:wlopβartist-wlop)- illegal characters
\ / * ? " < > |and newlines are removed - past 150 characters it truncates and appends
... - empty after cleaning β falls back to
Artist_Test
That's the whole "smart name" trick. No renaming engine, no pattern tokens, no dynamic counter - just "make the filename legal and keep it short," which is exactly the guardrail a batch loop needs when names come from whatever text your iterator happens to feed in.
The one input that matters
It takes just images and filename_prefix. The intended wiring is plug-and-play: take final_text from ArtistPromptComposer and connect it straight to filename_prefix. Then every saved file is named after the artist that generated it - something like masterpiece-best-quality-1girl-solo-portrait-artist-wlop_00001_.png. Throw the iterator's index_string into the mix too and you can sort the folder to see the batch order at a glance.
Leave the prefix at its default ComfyUI and it behaves exactly like the built-in node, so it's a safe drop-in even if you're not running the rest of the pack.
Installing
Same pack, same story: ComfyUI Manager, search "ComfyUI-Artist-Tester", or
cd ComfyUI/custom_nodes
git clone https://github.com/g7b2/ComfyUI-Artist-Tester.git
then restart. Zero dependencies - it leans on ComfyUI's own nodes.SaveImage, so there's nothing to pip and no model to download. Category: "π¨ Artist Tester".
Gotchas
- It's an output node - nothing wires out of it, which is normal for a save node.
- Sanitizing applies only to the filename, not the embedded metadata; your full prompt and workflow are still saved inside the PNG, which is the part you actually want to keep.
- The 150-character truncation can eat the artist name off the end of a long base prompt + tag combo. If your names are getting long, lean on
index_stringinstead - you'll never lose the artist in the output files. - On Linux and macOS
:is legal in filenames, but the sanitizer runs there too, so output names match across machines. Worth it for the consistency.
It's the least glamorous node in the pack and one of the most quietly useful: it's what turns a hundred-artist batch into a folder you can actually browse. The iterator makes the batch run; this makes the results findable.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | β | |
| filename_prefix | STRING | ComfyUI | β |
Outputs (0)
No outputs