Nodes/ComfyUI-NynxzNodes/Create Wipe Compare Video
ComfyUI Node

Create Wipe Compare Video

The AB slider that shows you the pixels that actually changed

By Nynxz·Created 9 months ago·Updated 2 months ago· 0
Create Wipe Compare Video
  • start_image
  • end_image
  • options
  • images
  • fps
upscale_toLarger Image
duration1.0
time_padding0.0
wipe_directionSwipe Left to Right

Create Wipe Compare Video makes the classic before/after slider clip: it shows start_image, sweeps a bar across revealing end_image, and gives you the frames plus fps to save as video. This is the comparison style you see in every checkpoint and LoRA showcase on r/StableDiffusion, and for good reason - unlike a crossfade, a wipe lets you stop the divider right where the two images differ and stare at the actual change. For pixel-level honesty, this is the one to reach for.

It's the sibling of Create Fade Compare Video in the same pack, sharing almost all of its inputs and its resize/pad pipeline. The extra piece is the wipe motion itself.

How it works

Both images are resized to the larger or smaller one by pixel area (upscale_to), dimensions bumped to even numbers, then fit to that canvas with the scale_mode and upscale_method (leftover space padded with background_color). Then a bar sweeps from one edge across the frame over duration seconds, copying the end image in behind it. The edge isn't a hard cut by default: a fade_width-pixel band blends between the two images so the sweep doesn't clip with harsh aliasing. Set fade_width to 0 for a razor-sharp divider, which some people prefer for precise pixel checks.

The direction comes from wipe_direction: Swipe Left to Right (default), Right to Left, Top to Bottom, or Bottom to Top. If you feed it options from the Compare Video Options node, you can also set a wipe_angle there; -1 (the default) just means "follow the direction input," and any angle gives you diagonal-ish sweeps.

Inputs worth knowing

  • start_image / end_image - two IMAGEs. The bar reveals the second over the first.
  • wipe_direction - which way the divider travels.
  • duration - 0.1 to 10 s, default 1. Longer wipes read better on the subreddit.
  • time_padding - frozen seconds at each end. With a wipe this is genuinely useful: pad lets the viewer see the full before and after states before the sweep starts.
  • upscale_to - "Larger Image" or "Smaller Image", the master canvas. Remember "upscale" here is a plain resize (resampling), not a real super-resolution pass.
  • options (optional) - the shared bundle: fps, background, scale mode, resampling, fade_width, wipe_angle.

Outputs

images (the frame batch as IMAGE) and fps (a FLOAT). Feed both into a video-combine node like VHS Video Combine (or core's SaveVideo) to get the mp4 - and actually connect the fps output instead of letting the combine node guess, or your timing will drift from what you set. fade_width and wipe_angle only matter here; the fade node ignores them.

Install & troubleshooting

In Nynxz/ComfyUI-NynxzNodes, which is on the Comfy Registry under publisher nynxz. From ComfyUI Manager, search "Nynxz" or "ComfyUI-NynxzNodes", install, restart. Manual route:

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

Then restart ComfyUI. There's no requirements.txt to run and nothing to download - the pack uses only numpy/PIL/torch, all already in ComfyUI. If the nodes don't appear after restart, the pack needs a newer ComfyUI: it's written against the comfy_api.latest extension API, so update ComfyUI before touching the pack. A hard edge on your wipe? That's fade_width at 0 working as intended.

CategoryNynxz

Inputs (7)

NameTypeDefaultDescription
start_imageIMAGEStarting image
end_imageIMAGEEnding image
upscale_toCOMBOLarger ImageChoose whether to upscale the start and end images to the larger or smaller of the two images
durationFLOAT1.00.1–10Duration of the compare video in seconds
time_paddingFLOAT0.00–5Optional time padding (in seconds) added to start and end of the video
wipe_directionCOMBOSwipe Left to Right4 options: Swipe Left to Right, Swipe Right to Left, Swipe Top to Bottom, Swipe Bottom to Top
optionsoptNYNXZ_COMPAREVIDEO_OPTSCompare Video Options

Outputs (2)

NameTypeDescription
imagesIMAGE
fpsFLOAT