Create Wipe Compare Video
Show the difference by sweeping a divider across it, not by blinking
- start_image
- end_image
- options
- images
- fps
A fade compare is great at saying "something changed." It's lousy at saying where. When the difference is localized - a face got fixed, the background was rebuilt, one object moved - a full-screen cross-fade buries the story. A wipe doesn't: it runs a moving divider across the frame with the old image on one side and the new on the other, so you can literally watch the boundary sweep over the region that changed. Create Wipe Compare Video is the before/after tool for edits with geography.
It's part of ComfyUI-NynxzNodes, the same pack as the fade version and the Fusion/Regions experiment groups. The wipe and fade compare nodes share almost everything - same inputs, same outputs - and differ only in the transition, so picking one is a taste call. If you're comparing two versions of an edit where the eye should land on a specific spot, reach for the wipe.
How it works
start_image and end_image go in, the node locks them to one shared canvas, then renders a frame batch where a divider slides from one side to the other, revealing the second image over the first. The knob that matters here and nowhere else:
wipe_direction- "Swipe Left to Right" is the default, but every cardinal direction is on offer. Match it to your subject: horizontal sweeps read well for most shots, while a vertical wipe suits before/after stacks or a subject that changed from the top down.
The rest of the interface you'll recognize from the fade node: duration (default 1s, 0.1–10) sets the clip length, time_padding holds the images static on either side of the wipe, and upscale_to decides whether the smaller or larger input sets the canvas. Output is the frame images batch plus an fps float - same as before, this isn't a video encoder. Feed the pair into your save node of choice (core Save Animated WebP is fine for a quick loop, VHS's Video Combine for real video) and you're done.
One subtlety: both input frames must share the geometry the wipe reveals, or the sweep looks like the whole image is sliding, not a before/after. If your two versions are different sizes, the node letterboxes them to a common canvas rather than stretching - so crop both to the same framing upstream when you can.
Install
Same story as every Nynxz node: ComfyUI Manager → search "NynxzNodes" and install from the registry, or
cd ComfyUI/custom_nodes
git clone https://github.com/Nynxz/ComfyUI-NynxzNodes
There are zero pip dependencies. If you cloned by hand, remember the UI is built into web/ (gitignored), so run pnpm install && pnpm build in the folder - or just use the Manager/registry build and skip that. Restart ComfyUI, and if the node list looks empty, update ComfyUI itself; the pack targets the newer extension API.
Gotchas
The wipe defaults to a black background fill, so transparent or mismatched edges will show as black bars during the sweep - wire a Compare Video Options node in to set a different background_color or scale_mode if that bugs you. And if the divider seems to move at the wrong speed, remember the wipe pace is locked to duration; shorten it for a snappier reveal.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| start_image | IMAGE | Starting image | |
| end_image | IMAGE | Ending image | |
| upscale_to | COMBO | Larger Image | Choose whether to upscale the start and end images to the larger or smaller of the two images |
| duration | FLOAT | 1.00.1–10 | Duration of the compare video in seconds |
| time_padding | FLOAT | 0.00–5 | Optional time padding (in seconds) added to start and end of the video |
| wipe_direction | COMBO | Swipe Left to Right | 4 options: Swipe Left to Right, Swipe Right to Left, Swipe Top to Bottom, Swipe Bottom to Top |
| optionsopt | NYNXZ_COMPAREVIDEO_OPTS | Compare Video Options |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | — |
| fps | FLOAT | — |