https://github.com/vslinx/comfyui-vslinx-nodes
Custom ComfyUI nodes that streamline and speed up workflows. Provide image multi-select loaders as well as boolean AND/OR/NOT plus bypass/mute any nodes. Also has a Fit Image into BBox Mask node as well as a bridge for rgthree's lora loader for image-saver with metadata information. Lastly provides a setting to show previews in all model loaders.
https://github.com/vslinx/comfyui-vslinx-nodes
comfy-ui comfyui comfyui-custom-node comfyui-node comfyui-nodes comfyui-plugin comfyui-workflow
Last synced: about 2 months ago
JSON representation
Custom ComfyUI nodes that streamline and speed up workflows. Provide image multi-select loaders as well as boolean AND/OR/NOT plus bypass/mute any nodes. Also has a Fit Image into BBox Mask node as well as a bridge for rgthree's lora loader for image-saver with metadata information. Lastly provides a setting to show previews in all model loaders.
- Host: GitHub
- URL: https://github.com/vslinx/comfyui-vslinx-nodes
- Owner: vslinx
- License: gpl-3.0
- Created: 2025-08-17T00:24:14.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-04-04T16:52:44.000Z (about 2 months ago)
- Last Synced: 2026-04-04T19:24:46.109Z (about 2 months ago)
- Topics: comfy-ui, comfyui, comfyui-custom-node, comfyui-node, comfyui-nodes, comfyui-plugin, comfyui-workflow
- Language: Python
- Homepage:
- Size: 197 KB
- Stars: 15
- Watchers: 0
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ComfyUI-vslinx-nodes
Custom ComfyUI nodes to streamline workflows: load multiple images via a multi-select dialog as a batch or list; load last generated image from the output folder with auto-refresh after generation; fit an image inside a mask’s bounding box for compositing poses, objects, or decals; convert images to pixel art with retro palettes (GameBoy, CGA, NES, Pico-8); upscale to any exact scale factor using an upscale model; boolean AND/OR/flip plus bypass or mute nodes on a boolean for easy workflow branching; multiline wildcard text input with dropdown for Impact-Pack; and append LoRA info from rgthree Power LoRA Loader into image metadata. Also includes settings to show hover previews for all models & LoRAs across all model loaders - compatible with rgthree’s subdirectory view - and a global fix for “Return type mismatch” errors caused by custom nodes like RES4LYF that extend combo lists such as schedulers.
## How to Install
### **Recommended**
* Install via [ComfyUI-Manager](https://github.com/ltdrdata/ComfyUI-Manager).
### **Manual**
* Navigate to `ComfyUI/custom_nodes` in your terminal (cmd).
* Clone the repository under the `custom_nodes` directory using the following command:
```
git clone https://github.com/vslinx/ComfyUI-vslinx-nodes.git comfyui-vslinx-nodes
```
## Settings
#### Fix combo type mismatches between custom nodes
Is enabled by default and prevents "Return type mismatch between linked nodes" errors that occur when custom nodes (e.g. RES4LYF) extend combo lists like schedulers with additional entries. When a mismatch is detected, the fix automatically corrects the expected list to match the input list of the receiving node — this is universal, works across subgraphs and all custom nodes, and does nothing when there is no mismatch. A message is logged to the console whenever the fix is applied.
Disable if you experience unexpected behavior.
#### Show hover previews in all model dropdowns
When enabled, this feature shows a preview for the model you’re hovering with your mouse.
It works across **all model / LoRA loaders** and supports **`.safetensors`**, **`.ckpt`**, **`.pt`**, and **`.gguf`** files located in these folders:
- `loras`
- `checkpoints`
- `unet`
- `diffusion_models`
It is also compatible with the **[rgthree-comfy](https://github.com/rgthree/rgthree-comfy)** node’s **“Auto Nest Subdirectories in Menus”** setting. A feature that often breaks preview behavior when combined with other custom nodes (e.g. **[ComfyUI-Custom-Scripts](https://github.com/pythongosssss/ComfyUI-Custom-Scripts)**).
Preview files must be placed **in the same folder as the model** and use the **same base filename**.
Supported formats:
**Images**
- `png`
- `jpg`
- `jpeg`
- `webp`
**Videos**
- `mp4`
- `webm`
The extension will look for previews using the most common naming schemes:
- `ModelName.png` / `ModelName.webm` / etc.
- `ModelName.preview.png` / `ModelName.preview.webm` / etc.
Compatible with well-known ComfyUI custom nodes/plugins that save metadata and/or previews, such as
**[ComfyUI-Lora-Manager](https://github.com/willmiao/ComfyUI-Lora-Manager)**.

## Nodes
### Text
#### (Impact-Pack) Multiline Wildcard Text
Provides a simple multiline text field with a wildcard selector that automatically appends selected wildcards. This node uses the API endpoint from the [Impact-Pack](https://github.com/ltdrdata/ComfyUI-Impact-Pack) custom node to provide a dropdown that lets you select wildcards to be added to your prompt.
This node does not resolve these wildcards by itself and is intended to be passed into the **“Populated Prompt”** field in the Impact-Pack **“ImpactWildcardProcessor”** node.

### Image
#### Load (Multiple) Images (List)
Provides a simple node with a “Select Images” button that lets you choose one or multiple images. After selection, the images are uploaded to your ``input`` folder in ComfyUI (the same behavior as the default Load Image node). The node also includes a preview of the selected images: you can click on an image to switch from the tile view to a full image view. Clicking the X returns you to the tile view, while the numbering in the bottom-right corner allows you to switch between images.
The node includes a ``max_images`` property that defines how many images can be loaded. If set to 0 or left empty, the number of allowed images is unlimited.
It also includes a ``fail_if_empty`` property to throw an error if no elements are being passed, likely caused by images having been deleted or moved from the input folder.
Furthermore includes a ``filename_handling`` property that lets you control how the filenames are being output.
- ``full filename`` will output the full filename without it's extension
``image (1).png`` will return ``image (1)``
- ``deduped filename`` will return the filename while removing any automatically appended `` (incrementing number)`` elements that are added when uploading more than 1 picture with the same filename + extension to the comfyui/input folder.
The images and filenames are returned as a list, allowing downstream nodes to process them one after another.

#### Load (Multiple) Images (Batch)
This node works the same way as the [Load (Multiple) Images (List)](#load-multiple-images-list)-Node but the images are returned as a batch, allowing downstream nodes to process them together while the filenames are returned as a string of all filenames seperated by a comma.
Note that a batch is a tensor of the same shape, if your images have different heights and width they'll be resized to fit one common size of the first image, even if that means that they'll get cropped, resized or padded.
**Using a batch always implies using uniform dimensions!**
#### Upscale by Factor (With Model)
his node upscales an image using a selected upscale model and then resizes the result to a target scale factor. Upscale models typically operate at a fixed scale (e.g. 2× or 4×). This node first runs the model at its native scale, then applies a final resize step to match your requested factor. Minimum is 0.1 scale while the maximum is 8.0 scale.

#### Image to Pixel Art
This node converts an image into true pixel art by downscaling it to a discrete low-resolution pixel grid, quantizing colors to a limited palette, and scaling back up with nearest-neighbor so every pixel block is hard-edged and solid with no blending or anti-aliasing.

#### Load Last Generated Image
This node loads an image from your ``output`` folder and serves as a replacement for ComfyUI's built-in **LoadImageOutput** node. A dropdown lists all images sorted by newest first, so the most recent generation is always at the top. When ``Auto refresh after generation`` is enabled, the node automatically picks up newly generated images after each workflow execution — but only when a new file actually appeared, so your current selection stays untouched otherwise.
The node supports the **MaskEditor** (right-click → "Open in MaskEditor"). Painted masks are preserved across workflow executions, tab switches, and page reloads. If no image is available or the selected file was deleted, the node outputs a 512×512 black image to prevent blocking your workflow.
A ``include_subfolders`` property (right-click → Properties) controls whether images from subfolders inside the ``output`` directory are included in the dropdown and refresh functions.
### Boolean
#### Boolean AND Operator
Provides a node with 2 boolean inputs. Outputs True only if both inputs are True. Otherwise returns False.

#### Boolean OR Operator
Just like the AND Operator it provides a node with 2 boolean inputs. Outputs True if either input is True. Returns False only if both are False.
#### Boolean Flip
Flips the input value: True → False, False → True. Useful for inverting conditions.
### Utility
#### Forward/Bypass on Boolean (Any)
This node accepts any input type and forwards it unchanged. Its pass-through behavior can be controlled with the built-in boolean switch or by linking an external boolean node. This allows you to create conditional branches in your workflow. The bypass state is applied instantly in the UI, without waiting for workflow execution.

#### Forward/Mute on Boolean (Any)
This node works the same way as ``Forward/Bypass on Boolean (Any)``, but instead of bypassing the connected nodes it mutes them. The mute state can be controlled with the built-in boolean switch or by linking an external boolean, and changes are applied instantly in the UI.
#### Group Bookmarks
A UI-only node that adds a collapsible side panel on the right edge of the ComfyUI canvas, listing bookmarked workflow groups. Clicking a bookmark entry centers the canvas on that group and zooms to fit it into view.
Click **"Manage Bookmarks"** on the node to open the bookmark manager. The left column shows all groups present in the workflow; clicking one adds or removes it from your active bookmarks on the right. Bookmarks can be organized into named, collapsible **sections** using the **"+ Add Section"** button - drag and drop items in the right column to reorder them or move groups into or out of sections. Sections themselves can also be reordered by dragging.
The side panel can be toggled open and closed via an arrow tab on the right edge of the canvas. Panel visibility, section collapsed state, and the full bookmark list are persisted with the workflow.
#### Power Lora Loader to Prompt (Image Saver)
This node acts as a bridge between the **Power Lora Loader (rgthree)** node by [rgthree](https://github.com/rgthree/rgthree-comfy) and the **Image Saver** node by [alexopus](https://github.com/alexopus/ComfyUI-Image-Saver).
You can either **connect a model**, or **provide the id** or **title** of a `Power Lora Loader (rgthree)` node, along with your prompt as a text string. The node will then **append the LoRAs** in the correct format for the Image Saver node. When you pass this new string to Image Saver as the **positive prompt**, it will save the hashes of the LoRAs for Civitai and other AI platforms while removing the LoRAs from the final string, so your prompt doesn’t look messy.

### Inpaint helper
#### Fit Image into BBox Mask
This node fits an image inside the bounding box region of a mask and places it into a destination image (or a blank canvas). It’s useful for workflows where you want to insert or align a smaller image (e.g. pose, object, logo, patch) into a specific masked region while keeping correct proportions.
This node does the following:
- Detects the bounding box (BBox) of your input mask — that is, the smallest rectangle that covers all white/non-zero pixels.
- Resizes the source image to fit inside (or cover) that bounding box, preserving aspect ratio.
- Places the resized image at the corresponding position in the destination image.
- Outputs the final composited image, a stand-alone fitted image, and a mask showing the exact placed region.
You can find an example workflow [here](https://github.com/user-attachments/assets/fb344190-206b-4c15-93ae-cac05c8b6740) for the images generated in the gif below(download and drop the workflow image into comfyui).


## Changelog
### v.1.8.1
- fixed ``(Impact-Pack) Multiline Wildcard Text`` wildcard dropdown not resetting after selection, which could make users think only one wildcard could be added per session
### v.1.8.0
- added new ``Group Bookmarks``-Node in the ``vsLinx/utility`` group. A UI-only node that adds a collapsible side panel on the right edge of the ComfyUI canvas listing bookmarked workflow groups. Clicking a bookmark entry centers the canvas on that group and zooms to fit it into view. Groups can be organized into named, collapsible sections inside the panel. Section collapsed state and panel visibility are persisted with the workflow.
- fixed ``Image to Pixel Art`` node name to match naming schema and link to actual documentation
### v.1.7.4
- added full subgraph support to ``Forward/Bypass on Boolean (Any)`` and ``Forward/Mute on Boolean (Any)``: boolean values passed in from outside a subgraph are now correctly resolved inside it at any nesting depth, and nodes outside the subgraph connected to its output are bypassed/muted accordingly
### v.1.7.3
- added new ``Image to Pixel Art``-Node that converts images to true pixel art via downscaling to a discrete pixel grid, color quantization with fixed historical palettes (GameBoy, Pico-8, CGA, C64, NES) or auto palette, and optional Floyd-Steinberg or ordered Bayer dithering
- improved ``Forward/Bypass on Boolean (Any)`` and ``Forward/Mute on Boolean (Any)`` upstream boolean resolution: the resolver now recursively walks the full upstream graph at any depth, covering arbitrary pass-through and relay nodes, instead of only handling the known vsLinx AND/OR/Flip nodes. This fixes cases where a linked boolean didn't resolve correctly when chained through one or more intermediate nodes.
### v.1.7.2
- introduced new setting that is activated by default and fixes global scheduler issues introduced by nodes like RES4LYF that overwrite global scheduler lists which does not work well with subgraphs or other custom nodes, if there's a mismatch this fix will automatically correct the expected list with the input list of the node and prevent erros
### v.1.7.1
- fixed ``Load Last Generated Image`` node preview getting stuck on a previously drawn mask after using the MaskEditor, then refreshing or auto-refreshing to a new image. Caused by ComfyUI frontend >=1.41 introducing a Vue-based node output store that the MaskEditor writes to; stale clipspace data in that store was overriding the node's preview on every frame. The fix clears the store entry and suppresses the Vue overlay when switching back to an output image.
### v.1.7.0
- added new ``Load Last Generated Image``-Node as a replacement for ComfyUI's built-in **LoadImageOutput** node. Provides a dropdown of all images in the output folder (newest first), auto-refresh after generation, a manual refresh button, a file upload button, and full MaskEditor support with mask persistence across executions, tab switches, and page reloads. Falls back to a 512×512 black image when no image is available.
### v.1.6.1
- added filename export for ``Load (Multiple) Images (List)`` and ``Load (Multiple) Images (Batch)`` with a node-property to also dedupe the filename to remove `` (number)`` from the name in case of a duplicate filename
### v.1.6.0
- added new "Upscale by Factor (With Model)"-Node that upscales an image to the desired factor of it's original size by using an upscale model + ``nearest-exact``, ``bilinear`` or ``area`` upscaling to resize the image to the desired factor afterwards
### v.1.5.0
- added new setting that allows you to add previews for all model loaders (+ rgthree subfolder compatible)
### v.1.4.0
- added the "(Impact-Pack) Multiline Wildcard Text"-Node that provides a simple multiline text field with a wildcard selector that automatically appends selected wildcards.
### v1.3.1
* fixed a bug where the ``Power Lora Loader to Prompt (Image Saver)`` could not gather the information of the loras if they were qwen, flux or lumina2 (Z-IMG)
### v1.3.0
* added new ``Power Lora Loader to Prompt (Image Saver)``-Node to the utility group. This Node can read the loras of a Power Lora Loader from rgthree and append them to a text string - this is helpful in combination with the Image Saver Node from alexopus to persist loras & their weights.
### v1.2.0
* added documentation including input & output parameters for every single node, viewable via the in-comfy node info view
* changed some of the texts in readme & removed parameter documentation from readme
* changed folder structure to include docs alongside js
### v1.1.3
* added new ``Fit Image into BBox Mask``-Node in it's own ``vsLinx/inpaint`` node-library. This node fits an image inside the bounding box region of a mask and places it into a destination image (or a blank canvas). It’s useful for workflows where you want to insert or align a smaller image (e.g. pose, object, logo, patch) into a specific masked region while keeping correct proportions. It's intended to be used in an inpainting process where you'll pre-process this image and execute a controlnet on the masked area. An example and can be found in the node description above.
### v1.1.2
* The ``Forward/Bypass on Boolean (Any)`` and ``Forward/Mute on Boolean (Any)`` now search for the parent boolean value(s) of the upstream nodes if they're either ``Boolean AND Operator``, ``Boolean OR Operator`` or ``Boolean flip`` to ensure bypassing even if boolean value is passed by a node instead of the in-node switch.
### v1.1.1
* added ``Forward/Bypass on Boolean (Any)`` that lets you bypass directly connected node(s) based on a boolean value
* added ``Forward/Mute on Boolean (Any)`` that lets you mute directly connected node(s) based on a boolean value
* added ``Boolean AND Operator`` that returns true if both of it's boolean inputs are true, otherwise returns false
* added ``Boolean OR Operator`` that returns true if either of it's boolean inputs are true, otherwise returns false
* added ``Boolean flip`` that flips a boolean value: True becomes False, False becomes True.
* added descriptions for the ``Load (Multiple) Images (List/Batch)``-Nodes
### v1.0.1
* added ``fail_if_empty`` property in Properties (default true) to stop graph when selection resolves to no images
* improved runtime errors when files are missing from input (clear “No valid images found…” message)
* check for removed/missing files against server (HEAD/GET) after load/upload and before preview
* preview no longer prunes on browser decode failure; it’s best-effort and non-blocking
* de-duplicate selections (order-preserving) and respect ``max_images`` cap
* auto-prune missing files from ``selected_paths`` after restarts or external deletions
* renamed nodes (display names only; IDs unchanged for backward compatibility)
### v1.0.0
* initial release