Image Preview With Title
When every preview says 'Preview Image', the title saves you
- image
You've been there: five Preview Image nodes in one workflow, and you honestly can't tell which output is which without tracing the wires. AUNTitleImagePreview fixes the one thing that annoys you about the stock node - it shows the image inside the node and mirrors a text string onto the node's own title bar. So instead of guessing, you see "step_0028.png" or "upscaled_4x" right where a title should be.
It's a companion to AUN Image Single Batch 3 (AUNImageSingleBatch3), which is the common case: you're cycling through a folder of images, and each run the preview's title updates to whatever filename was picked. But it works with any string source - a prompt, a filename builder, a label from a switch. If your graph already knows what an image is, this node puts that answer on the label.
How it works
The node subclasses ComfyUI's own PreviewImage, so the image display part is the same rendering you already know. On top of that it does one sneaky thing: when it runs, it sends a AUN.set_node_title message back to the frontend telling the canvas to rename the node to your title value. That's it. No model, no files written, no dependencies beyond what ComfyUI already ships. It's a presentation node - the whole job is making a busy canvas readable.
It's also an output node: it declares no outputs, so it belongs at the end of a path. If you don't see a preview, check that it's actually connected in the chain and that the queue reached it.
The inputs that matter
There are only two:
- image (required) - the IMAGE tensor to preview.
- title (optional STRING, default
AUN Image Preview) - the text mirrored to the node title. This one isforceInput, meaning it's a socket, not a widget. Connect a string output (say, thefilenameoutput fromAUNImageSingleBatch3, or any text node) and the title follows it. Leave it unconnected and you get the default title.
No outputs, because there's nothing left to compute. The payoff is all visual.
Installing it
This node ships in the AUN pack, a one-person collection of "nodes I find useful" from loz2754 - originally built for the author's own compact workflows. Easiest route is ComfyUI-Manager: search for "AUN" (pack title: AUN ComfyUI Nodes) and install. Or clone it:
cd custom_nodes
git clone https://github.com/loz2754/AUN-ComfyUI-Nodes
Then restart ComfyUI. The pack's requirements.txt lists piexif, opencv-python-headless, imageio-ffmpeg, and requests - those are for the image/video saver nodes, not this one, and Manager will pull them anyway. If you cloned manually and hit ModuleNotFoundError: piexif or cv2, run pip install -r custom_nodes/AUN-ComfyUI-Nodes/requirements.txt.
Gotchas
Because the title is a socket, you can't just type a new name into the node like a normal widget. If you want a fixed title, leave the input unconnected and it uses the default. And remember the title is set during execution - the node updates when the queue hits it, so don't expect the label to change live as you edit the connected text. Small node, but if you batch-generate or compare versions, it's the difference between a readable canvas and archaeology.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Image tensor to preview inside this node. | |
| titleopt | STRING | AUN Image Preview | Optional text mirrored to the node's title; defaults to AUN Image Preview. |
Outputs (0)
No outputs