Nodes/SDVN_Comfy_node/πŸ“‚ ImageGallery
ComfyUI Node

πŸ“‚ ImageGallery

ImageGallery (SDVN)

By StableDiffusionVNΒ·Created 2 years agoΒ·Updated about a month agoΒ· 118
πŸ“‚ ImageGallery
    • image
    β—„selected_pathsβ–Ί
    β—„current_directoryβ–Ί

    ImageGallery turns a folder of images into a browsable picker inside your workflow: point it at a directory, click the ones you want, and it outputs your selection as an image into the graph. It's a quality-of-life node for anyone working from a pile of files - a scraped dataset, a batch of past outputs, a reference folder - who's tired of typing exact filenames or dragging things through the input uploader one at a time.

    The two inputs describe exactly that interaction. current_directory is the folder you're browsing, and selected_paths is the multiline list of which images in it you've chosen - the node's UI lets you page through the directory and click to select, writing your picks into that field. The single image output is the selected image, ready to feed into whatever comes next. So the working loop is: set the directory, browse, click, and the chosen image flows downstream without you ever hand-typing a path.

    Where it earns its place is dataset and output management. If you generate in batches, your output folder fills up fast, and finding "that good one from an hour ago" to run back through an upscale or an edit pass normally means leaving ComfyUI to file-browse and then re-uploading. A gallery node keeps that inside the graph - visually pick the image and pipe it straight into the next stage. Same story for curating a scraped folder down to the handful worth using, or pulling a specific reference out of a big collection. It's the kind of node you don't miss until you have it, and then reach for constantly when you're doing anything iterative across many files.

    This is the lighter, path-driven member of the pack's image-browsing family - there's a fuller-featured Image Gallery elsewhere in the set that does pagination and remote/URL collection with temp caching. This one is the straightforward "browse a local directory and grab what I click" version, which is honestly what you want most of the time.

    Install comes with the pack. ComfyUI Manager, search SDVN_Comfy_node; or cd ComfyUI/custom_nodes && git clone https://github.com/StableDiffusionVN/SDVN_Comfy_node, then pip install -r custom_nodes/SDVN_Comfy_node/requirements.txt from your ComfyUI root and restart. No weights - it's a UI/IO utility.

    Troubleshooting. An empty gallery almost always means current_directory points somewhere without readable images - check the path is right and reachable from where ComfyUI is running (a path that's valid on your desktop isn't valid on a remote/cloud instance). If nothing comes out on the image output, you probably haven't actually selected anything, or the selection didn't get written to selected_paths - click to select before you run. And because this reads from disk, the images have to exist where the node is executing: on a hosted ComfyUI the folder needs to be one the server can see, not a local drive on your own machine. Get the directory right and it's about as fussy as double-clicking a thumbnail, which is the point.

    CategoryπŸ“‚ SDVN

    Inputs (2)

    NameTypeDefaultDescription
    selected_pathsSTRINGKhΓ΄ng chỉnh sα»­a. Tα»± Δ‘α»™ng cαΊ­p nhαΊ­t tα»« Image Gallery.
    current_directorySTRINGThΖ° mα»₯c Δ‘ang mở trong Image Gallery.

    Outputs (1)

    NameTypeDescription
    imageIMAGEβ€”