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

🐯 YFG 10 Image Switcher

A whole seed row on one dropdown

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

Ten images on one node is either exactly what your seed grid needs or completely unnecessary - there's no in-between. The YFG 10 Image Switcher is a single node with ten IMAGE inputs, a selected_image dropdown running "Image 1" through "Image 10", and two outputs: the image you picked, plus a routing diagram that shows which input is live.

It's the middle child of the switcher family in the gonzalu/ComfyUI_YFG_Comical pack (3, 5, 10, 15, and 20 input versions all ship together). The mechanism is shared across all of them: the selected_image widget picks a slot, the node passes that tensor straight through, and every input is optional so a half-wired node still runs.

The two views

preview_type is the feature that justifies the node. Set it to Input Image and the preview shows your chosen image (optionally labeled via image_label and the font settings). Set it to Connection Diagram and it draws a ten-row routing graphic with the active input's line highlighted down to the output. Ten inputs is exactly the point where "which one did I select?" gets hard to answer by memory - that's the diagram's moment.

Outputs

  • Selected Image (IMAGE) - wire this downstream. It's just the tensor from the chosen slot.
  • Connection Diagram (IMAGE) - the routing graphic; usually left unwired, occasionally saved for documentation.

Installing

Pack install, once for all the switchers: ComfyUI Manager β†’ search "YFG Comical" β†’ install, or

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

Restart ComfyUI after. The switcher itself is pure PIL. The pack's histogram/mask files import cv2 and matplotlib at load time without declaring them in pyproject.toml, so if the entire pack fails to import, pip install opencv-python matplotlib and restart.

When it's worth it

Ten is a lot of inputs to wire. If you're running a 10-seed sweep and actually want to flip through the results in one place, this is nicer than a pile of individual previews. If you're honest with yourself and you switch between two or three images, the smaller siblings or the built-in switch do the job. The diagram view is the reason to pick this family over stock ComfyUI - but you have to be running enough images for it to earn its keep.

Category🐯 YFG/πŸ”€ Switchers

Inputs (17)

NameTypeDefaultDescription
selected_imageCOMBOImage 110 options: Image 1, Image 2, Image 3, Image 4, Image 5, Image 6, +4
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β€”

Outputs (2)

NameTypeDescription
Selected ImageIMAGEβ€”
Connection DiagramIMAGEβ€”