π― YFG 5 Image Switcher
A 5-way image switch that tells you which slot is live
- Image 1
- Image 2
- Image 3
- Image 4
- Image 5
- Selected Image
- Connection Diagram
The five-input version of the YFG switcher, and honestly the size where this family starts to make sense. At three inputs the built-in Image Switch is fine. At five you're probably comparing a row of seeds or a grid of sampler settings, and "which one is selected right now?" becomes a real question - which is exactly what this node answers with its routing diagram.
Same DNA as the 3-input sibling in the same pack (gonzalu/ComfyUI_YFG_Comical): selected_image dropdown with "Image 1" through "Image 5", a preview_type toggle between showing the selected image and showing a connection diagram, and every input optional so an unconnected slot doesn't error out.
What you actually set
selected_image- the only input that does anything meaningful. Pick the slot.preview_type- Input Image previews the chosen image; Connection Diagram draws a rectangle-per-input graphic with the active path highlighted. If you're running a five-way sweep, the diagram view is the one that keeps you sane.image_label,font_size,font_color,font_file- cosmetic label on the preview.
Outputs
Both are IMAGE: Selected Image (the one to wire onward) and Connection Diagram (the routing graphic, usually left unwired). If a slot is empty, the node handles it gracefully instead of killing the run - the pack's whole reason for existing on these switchers was avoiding "ganged switcher confusion" in complex workflows.
Installing
This is a pack install, not a node install. ComfyUI Manager β search "YFG Comical" β install, or:
cd ComfyUI/custom_nodes
git clone https://github.com/gonzalu/ComfyUI_YFG_Comical
Restart after. The switcher itself needs only PIL; the pack's other nodes want cv2/matplotlib (not in pyproject.toml), so if the whole pack errors on import, pip install opencv-python matplotlib and restart.
Verdict
Five inputs is where a "which one is live" indicator starts paying for itself, and the optional-inputs behavior makes these safe to drop into shared workflows. That said, if you're only ever switching between two or three images, the built-in switch plus a memory of which seed you typed will do the same job with less pack baggage. The diagram is the differentiator - use it once and you'll miss it on stock ComfyUI.
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| selected_image | COMBO | Image 1 | 5 options: Image 1, Image 2, Image 3, Image 4, Image 5 |
| font_size | COMBO | Medium | 3 options: Small, Medium, Large |
| font_color | COMBO | White | 8 options: White, Black, Red, Green, Blue, Yellow, +2 |
| font_file | STRING | seguisb.ttf | β |
| image_label | BOOLEAN | true | β |
| preview | BOOLEAN | true | β |
| preview_type | COMBO | Input Image | 2 options: Input Image, Connection Diagram |
| Image 1opt | IMAGE | β | |
| Image 2opt | IMAGE | β | |
| Image 3opt | IMAGE | β | |
| Image 4opt | IMAGE | β | |
| Image 5opt | IMAGE | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| Selected Image | IMAGE | β |
| Connection Diagram | IMAGE | β |