Nodes/comfyUI-tool-2lab/Preview Image By Path (2lab)
ComfyUI Node

Preview Image By Path (2lab)

Eyeball images straight off the filesystem — no graph detour required

By AI2lab·Created 2 years ago·Updated 2 years ago· 23
Preview Image By Path (2lab)
  • image_paths

    PreviewImageByPath (2lab) is a display node for images that live on disk rather than in the graph. It takes a list of file paths, and the whole job is to show you those images in the ComfyUI UI. No outputs, nothing wired onward - it's a terminal: run the workflow, look at the pictures.

    Sounds trivial, but the use case is real. Say you've got a folder of reference images, or an upscale pipeline writing results to disk, or another tool dropping frames into a directory. To check them in ComfyUI normally you'd load each one through the input folder and push it through a preview node - a whole detour just to look at something that's already on your machine. This node skips the detour: point it at the paths, queue the graph, and the images appear in the UI exactly where a normal preview would show them.

    How it works

    One required input:

    • image_paths - a LIST of file paths. Because it's a list, you can hand it several images at once and get a whole set previewed in one run - feed it from a list-building node or from a path string node that outputs a list.

    There are no outputs, and that's by design. It's flagged as an output node (graph terminal), so it's the end of the line - its entire contribution is the preview window. If you want the images to also flow onward into the graph, pair it with the pack's LoadImageByPath, which takes a single path and emits IMAGE + MASK. This node is the "just show me" version; that one is the "give me the pixels" version.

    One practical note: since it reads from paths, the same working-directory gotcha as LoadImageByPath applies - use absolute paths when the relative base isn't obvious, and remember the paths are read on your machine, so a path that makes sense in the workflow only resolves if the file actually exists there at run time.

    Installing it

    Part of AI2lab/comfyUI-tool-2lab. ComfyUI Manager → search comfyUI-tool-2lab → Install → restart, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/AI2lab/comfyUI-tool-2lab
    

    Restart ComfyUI after. No models, no dependencies - the pack is a Chinese dev's grab-bag of utilities, README one word long. If you mostly preview images that are already on disk, this node turns "drag the file into ComfyUI, find it in the dropdown, add a preview node" into "paste a path, queue, look."

    Category☁️2lab/image

    Inputs (1)

    NameTypeDefaultDescription
    image_pathsLIST

    Outputs (0)

    No outputs