Nodes/😸 YFG Comical Nodes/🐯 YFG 5 Image Switcher
ComfyUI Node

🐯 YFG 5 Image Switcher

A 5-way image switch that tells you which slot is live

By gonzaluΒ·Created 2 years agoΒ·Updated a day agoΒ· 29
🐯 YFG 5 Image Switcher
  • Image 1
  • Image 2
  • Image 3
  • Image 4
  • Image 5
  • Selected Image
  • Connection Diagram
β—„selected_imageImage 1β–Ί
β—„font_sizeMediumβ–Ί
β—„font_colorWhiteβ–Ί
β—„font_fileseguisb.ttfβ–Ί
β—„image_labeltrueβ–Ί
β—„previewtrueβ–Ί
β—„preview_typeInput Imageβ–Ί

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.

Category🐯 YFG/πŸ”€ Switchers

Inputs (12)

NameTypeDefaultDescription
selected_imageCOMBOImage 15 options: Image 1, Image 2, Image 3, Image 4, Image 5
font_sizeCOMBOMedium3 options: Small, Medium, Large
font_colorCOMBOWhite8 options: White, Black, Red, Green, Blue, Yellow, +2
font_fileSTRINGseguisb.ttfβ€”
image_labelBOOLEANtrueβ€”
previewBOOLEANtrueβ€”
preview_typeCOMBOInput Image2 options: Input Image, Connection Diagram
Image 1optIMAGEβ€”
Image 2optIMAGEβ€”
Image 3optIMAGEβ€”
Image 4optIMAGEβ€”
Image 5optIMAGEβ€”

Outputs (2)

NameTypeDescription
Selected ImageIMAGEβ€”
Connection DiagramIMAGEβ€”