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

🐯 YFG 15 Image Switcher

15 images, one dropdown, and a diagram that shows the active path

By gonzaluΒ·Created 2 years agoΒ·Updated a day agoΒ· 29
🐯 YFG 15 Image Switcher
  • Image 1
  • Image 2
  • Image 3
  • Image 4
  • Image 5
  • Image 6
  • Image 7
  • Image 8
  • Image 9
  • Image 10
  • Image 11
  • Image 12
  • Image 13
  • Image 14
  • Image 15
  • Selected Image
  • Connection Diagram
β—„selected_imageImage 1β–Ί
β—„font_sizeMediumβ–Ί
β—„font_colorWhiteβ–Ί
β—„font_fileseguisb.ttfβ–Ί
β—„image_labeltrueβ–Ί
β—„previewtrueβ–Ί
β—„preview_typeInput Imageβ–Ί

At fifteen inputs this switcher has left "compare a couple of variants" behind and entered "I'm auditing a batch" territory. If you're stacking up a big grid of seeds, sampler settings, or upscale passes and want to flip through them without a wall of individual preview nodes, this is the tool: fifteen IMAGE slots, one selected_image dropdown, and an output that mirrors whichever slot you chose.

It's from the YFG Comical pack (gonzalu/ComfyUI_YFG_Comical), which ships the identical switcher design at 3, 5, 10, 15, and 20 inputs. All share the same behavior: the selected tensor passes straight through, unconnected inputs are tolerated instead of erroring, and preview_type lets you swap the node preview between the selected image and a generated Connection Diagram - a routing graphic that highlights which of the fifteen inputs is live.

Inputs and outputs

The only input that matters is selected_image. The font/label settings (font_size, font_color, font_file, image_label) just decorate the preview image, and preview turns the preview off entirely if you want a compact node. Outputs are Selected Image (IMAGE) - the one you wire forward - and Connection Diagram (IMAGE), which you'll usually leave floating.

Installing

One install covers all fifteen inputs and the rest of the pack: search "YFG Comical" in ComfyUI Manager, or

cd ComfyUI/custom_nodes
git clone https://github.com/gonzalu/ComfyUI_YFG_Comical

Restart ComfyUI. The switchers need only PIL. If the whole pack fails on import, it's the undeclared cv2/matplotlib in the histogram and mask files - pip install opencv-python matplotlib fixes it.

The honest part

Be realistic about whether you'll wire all fifteen slots. Most people won't, most of the time - and a half-empty 15-input node is just a bigger version of the 3-input one. The diagram preview is genuinely the best reason to pick this family over stock ComfyUI. And if you're hitting 15 inputs, consider whether a by_index-driven picker (like the pack's Random Image From Directory node in by_index mode) might not serve your batch-audit workflow better than manually flipping a dropdown.

Category🐯 YFG/πŸ”€ Switchers

Inputs (22)

NameTypeDefaultDescription
selected_imageCOMBOImage 115 options: Image 1, Image 2, Image 3, Image 4, Image 5, Image 6, +9
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β€”
Image 6optIMAGEβ€”
Image 7optIMAGEβ€”
Image 8optIMAGEβ€”
Image 9optIMAGEβ€”
Image 10optIMAGEβ€”
Image 11optIMAGEβ€”
Image 12optIMAGEβ€”
Image 13optIMAGEβ€”
Image 14optIMAGEβ€”
Image 15optIMAGEβ€”

Outputs (2)

NameTypeDescription
Selected ImageIMAGEβ€”
Connection DiagramIMAGEβ€”