Nodes/ComfyUI-xiaozhuguang/小珠光图像对比
ComfyUI Node

小珠光图像对比

A/B your images side by side without spamming the output folder

By xiaozhuguang·Created 2 months ago·Updated a day ago· 56
小珠光图像对比
  • a
  • b
    reduce_lagfalse
    show_linetrue

    The most common workflow in ComfyUI isn't a fancy pipeline - it's "which one of these two looks better?" Two seeds, two upscalers, two CFGs. If you've been answering that question by flipping between two Preview nodes in different parts of the canvas, 小珠光图像对比 (Xiaozhuguang Image Compare) is the upgrade: it puts image A and image B in one node, side by side, with a divider line so you can see both at once. It's an output node - nothing hits your output/ folder, the comparison happens in the browser.

    You'll reach for it constantly once it's installed: seed hunts, upscaler shootouts, denoise sweeps, "did the detail pass actually help?" - that last one being the question the detailing docs keep warning you to actually look at. Two wires in, one comparison view.

    How it works

    It's built on ComfyUI's PreviewImage base class, so it renders like a preview node, but it takes two optional IMAGE inputs (a and b) and returns both as UI images for the front end to draw side by side. The images are compressed to JPG and written to the temp/ directory (not output/) for display - fast to load, nothing permanent. show_line toggles the divider between the two, and reduce_lag drops the preview quality (max side 3840 vs 6400) when you're comparing a big batch and the canvas is crawling.

    The inputs that matter

    • a and b - the two IMAGE inputs. Either can be left unconnected; you'll just get one side.
    • reduce_lag - lower-res previews for large images or batches.
    • show_line - the divider between the two images.

    No outputs - it's a terminal node, which also means it's a cache endpoint: the graph runs up to it and stops.

    Install

    From the ComfyUI-xiaozhuguang pack - Manager (search "ComfyUI-xiaozhuguang"), or:

    cd ComfyUI/custom_nodes/
    git clone https://github.com/xiaozhuguang/ComfyUI-xiaozhuguang.git
    

    Restart. No dependencies beyond what ComfyUI ships.

    Gotchas

    Because previews land in temp/, they're disposable - if you compare something and close ComfyUI, the preview is gone, so save the winner before moving on. And remember this is a viewer, not a judge: side-by-side is great for spotting differences, but if the two images differ only in a small region, you'll want to zoom or use the pack's Image Save to pull both at full res before declaring a winner.

    Categoryxiaozhuguang

    Inputs (4)

    NameTypeDefaultDescription
    aoptIMAGE
    boptIMAGE
    reduce_lagoptBOOLEANfalse
    show_lineoptBOOLEANtrue

    Outputs (0)

    No outputs