Nodes/ComfyUI_LC123_nodes/LC Image Split πŸ–ΌοΈ
ComfyUI Node

LC Image Split πŸ–ΌοΈ

The before/after wipe that actually saves the split image

By lonecatone23Β·Created 2 months agoΒ·Updated about 20 hours agoΒ· 19
LC Image Split πŸ–ΌοΈ
  • image_a
  • image_b
  • split πŸ–ΌοΈ
β—„split_position0.50β–Ί
β—„show_dividertrueβ–Ί

Everyone's seen the A|B comparison posts: half the image on one side, half on the other, divider down the middle. That's what this node produces - with the twist that the wipe happens live on the node face, and the output is the baked split you can actually save. If you've ever wanted to show "before" and "after" of a grade, an upscale, or a face fix without screenshotting two windows, this is the fastest way to get there.

How it works

Feed it two images: image_a (left side of the wipe) and image_b (right side). The split_position slider (0–1, default 0.5) controls where the cut lands. The node composites the left of A with the right of B, matching sizes if they differ, and emits one tensor out of the split πŸ–ΌοΈ output. The frontend keeps both originals in memory so the preview redraws live as you drag the slider - the baked output only refreshes when you run.

Here's where people get burned: dragging the image does nothing. The wipe is slider-only by design. The brief and the node tooltip both say it, but muscle memory from every other wipe node will have you dragging the preview and swearing. Use split_position. That's the whole job.

show_divider (on by default) paints a thin light seam at the cut in the saved output, which makes the "this is a comparison" framing obvious. Turn it off for a clean composite that looks like one image.

Why it's better than the generic alternative

The node's own save behavior is the underrated part. It writes A, B, and the split to temp files with lc.split.* prefixes - which is exactly what you need if the live preview ever falls back to static images. And because it's an OUTPUT_NODE, it'll show up as a finished result you can click to view full size.

Install

Part of ComfyUI LC123 Nodes (MIT). Manager β†’ search "ComfyUI LC123 Nodes", or:

cd ComfyUI/custom_nodes
git clone https://github.com/lonecatone23/ComfyUI_LC123_nodes

Restart. No extra dependencies. On RunningHub or similar, have the platform install the pack for you.

A real workflow

Compare a denoise pass or an upscale: wire the original into image_a, the processed result into image_b, set the wipe at 0.5, run once, and save the split output. It's a two-minute way to make the "look what this node does" image you were going to assemble in GIMP anyway.

CategoryLC123/image

Inputs (4)

NameTypeDefaultDescription
image_aIMAGELeft side of the wipe.
image_bIMAGERight side of the wipe.
split_positionFLOAT0.500–1Wipe position 0–1. Adjust with this slider only β€” dragging the image does not change it. Preview updates live.
show_dividerBOOLEANtrueThin light seam on the cut in the saved/output image.

Outputs (1)

NameTypeDescription
split πŸ–ΌοΈIMAGEβ€”