ComfyUI Node

Preset Gallery

Previews, one click, done

By MosnowLab·Created 4 months ago·Updated 4 months ago· 0
Preset Gallery
      target_node

      Once you've got more than a handful of presets, "Sunset_v2" and "Sunset_final_2" start blending together in a dropdown. Preset Gallery gives the whole set a face: a full-screen grid of cards, each with a preview image you upload, that you click to switch. It's the visual companion in the MosnowLab ComfyUI-Preset-Switcher pack, and it drives the pack's two switcher nodes rather than managing anything itself.

      How it works

      It's an output node with no outputs at all. Its only job is to point at a switcher and render its presets. You either pick a target from its Target Node dropdown - which lists every Preset Switcher (Style) and Preset Switcher (LoRA) node in your graph - or you wire a switcher into its single optional target_node input. Wiring wins: it disables the dropdown and auto-selects the connected node.

      Then Open Gallery pops a modal: a grid of preset cards for that target, with the current one highlighted by a blue border and glow. Click a card and it calls the switcher's apply logic - sets its Preset Select dropdown and applies the saved model, LoRA, and prompt values - then re-renders so the new current preset lights up. Cards without a preview show a "+"; click it or drag an image onto it to upload a thumbnail. The backend stores images as presets/images/{效率|lora}_{presetName}.png inside the pack folder and serves them back through its own route, and Manage Mode adds a delete button per image.

      The input (there's only one)

      target_node - a STRING, optional, wired or picked from the dropdown, as above. That's the whole schema; there are no outputs, and the node is marked as an output node so ComfyUI treats it as a graph endpoint.

      Install

      cd ComfyUI/custom_nodes/
      git clone https://github.com/MosnowLab/ComfyUI-Preset-Switcher.git
      

      Restart ComfyUI, or search Preset Switcher in ComfyUI Manager. No extra Python dependencies, no model files - the only "heavy" thing here is the preview images, which live on disk.

      Where people get burned

      The gallery needs a switcher to aim at - open it with no target selected and it just alerts you to pick one. Previews live on your ComfyUI machine, in the pack's folder, not embedded in the workflow JSON: share the workflow with a friend and they'll see empty placeholder cards, because the images stay with your install (export the preset and have them upload their own if it matters). Images are matched to presets by node-type prefix plus the sanitized preset name, so renaming a preset orphans its thumbnail until you re-upload it. And one expectation to set: this is a young, quietly maintained pack - single commit, no real community footprint - so treat the gallery as a personal convenience, not a polished product. As such it's genuinely nice: browsing ten styles by eye beats reading ten filenames every time.

      CategoryPreset

      Inputs (1)

      NameTypeDefaultDescription
      target_nodeoptSTRING

      Outputs (0)

      No outputs