Skip to content
vdeng-aiPublic

About

VistaPair — a fast, GPU-accelerated Rust image comparison viewer

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

VistaPair — Rust Image Compare Viewer

CI Latest release License: MIT

English · 简体中文

VistaPair is a fast, GPU-accelerated desktop application for comparing matching images across folders. It is built for model-output review, image-processing experiments, export checks, and visual QA—but it is equally useful as a clean everyday image browser.

VistaPair comparison overview

Why VistaPair

Fast by design WGPU rendering, prioritized background decoding, nearby-group prefetching, byte-bounded CPU/GPU LRU caches, and incremental folder watching.
Purpose-built comparison Synchronized multi-folder grids plus Overlay, Wipe, Blink, absolute/amplified Diff, perceptual Heatmap, channel inspection, and pixel probing.
A practical image viewer Add a single folder to browse naturally sorted images with zoom, pan, physical 1:1 viewing, HiDPI support, and synchronized animation playback.

Download and quick start

Download the build for your platform from the repository's Releases page and verify it against SHA256SUMS.txt.

Platform v1.0.1 assets
Linux x86_64 VistaPair-1.0.1-linux-x86_64.AppImage or vistapair_1.0.1_amd64.deb
Windows x86_64 VistaPair-1.0.1-windows-x86_64-setup.exe or VistaPair-1.0.1-windows-x86_64-portable.zip
macOS Apple Silicon VistaPair-1.0.1-macos-arm64.dmg
macOS Intel VistaPair-1.0.1-macos-x86_64.dmg

On Linux, make the AppImage executable before starting it:

chmod +x VistaPair-1.0.1-linux-x86_64.AppImage
./VistaPair-1.0.1-linux-x86_64.AppImage

VistaPair v1.0.1 is not publisher-signed. Windows may show SmartScreen and macOS may block the first launch. Verify the SHA-256 checksum first; on macOS, Control-click the app and choose Open, or use Open Anyway in Privacy & Security. Formal Authenticode signing and Apple notarization are planned release-engineering improvements.

Once open, drag in one or more folders. Matching images appear immediately in a configurable grid.

Screenshots

Browse a folder like a regular image viewer

One folder is enough: navigate, zoom, pan, inspect pixels, view at physical 1:1, and play animated GIF/WebP files.

VistaPair single-folder image browsing

Compare aligned outputs

Choose any folder as the reference, keep cells synchronized, and use a draggable horizontal or vertical Wipe to reveal changes.

VistaPair vertical wipe comparison

Make subtle differences obvious

Amplified Diff and perceptual Heatmap modes expose small color, luminance, and alpha changes directly on the GPU.

VistaPair perceptual heatmap comparison

Comparison features

  • Add or drag in any number of folders and arrange them in a strict 1–20 column grid.
  • Match images by relative path without extension, file name without extension, or naturally sorted position.
  • Select any source as the reference and compare every other cell against it.
  • Use Normal, Overlay, horizontal/vertical Wipe, Blink, Absolute Diff, Amplified Diff, and Perceptual Heatmap modes.
  • Inspect RGB, Red, Green, Blue, and Alpha channels with linear or nearest-neighbor sampling.
  • Hover to probe normalized coordinates, per-image RGBA values, and reference/target deltas across different resolutions.
  • Keep cells synchronized, or switch an individual cell to FREE for independent zoom and pan.
  • Save and reopen portable .vistapair.json workspaces.

Use VistaPair as an image browser

Add just one directory to use VistaPair without any comparison mode. Files are scanned recursively and naturally sorted (2 before 10). You can also drag an image file into the window; VistaPair opens its parent folder.

From a terminal, pass one folder for browsing or multiple folders for comparison:

vistapair /data/photos

vistapair \
  /data/original \
  /data/model-a \
  /data/model-b

Why it is fast

  • The UI and comparison modes render through WGPU; two-texture comparisons run in a custom WGSL shader.
  • Image decoding runs on prioritized worker threads, while stale prefetch work is cancelled during fast navigation.
  • Folder discovery and image grouping run in cancellable background jobs with visible progress, so adding several large folders does not block the window.
  • The current group and two groups on either side are prefetched.
  • Decoded media uses a 1 GiB byte-bounded CPU LRU; uploaded frames use a 512 MiB byte-bounded GPU LRU.
  • Folder changes are debounced and applied incrementally instead of triggering a full rescan.
  • SVG files are rasterized into resolution tiers so zoomed images stay sharp without decoding every file at maximum size.

These are bounded defaults, not benchmark claims: actual throughput depends on image formats, dimensions, storage, and GPU drivers.

Formats and platforms

VistaPair supports PNG, JPEG, GIF, WebP, BMP, and static SVG. GIF and animated WebP files share a synchronized playback timeline.

Release builds target Linux x86_64, Windows x86_64, macOS Apple Silicon, and macOS Intel from one Rust codebase. The interface supports English, Simplified Chinese, and automatic system-language selection.

Controls

Action Control
Add folders Folders menu or drag folders/images into the window
Previous / next group ← / →
Zoom / pan Mouse wheel / drag
Independent cell view Click SYNC / FREE in a cell header
Fit current / all cells Double-click a cell / F
Physical 1:1 reference pixels 1
Play / pause animation Space
Move a Wipe divider Drag the image; use Shift + drag to pan
Inspect pixels Hover an image

Matching modes

  • Relative path (recommended): ignores extensions, so scene/001.png matches scene/001.webp.
  • File name: ignores directories and extensions; useful for flat sets, but duplicate stems can collide.
  • Natural order: groups the Nth naturally sorted image from each folder.

Build from source

VistaPair uses Rust 2024 and requires Rust 1.92 or newer. On Ubuntu, install the native dependencies first:

sudo apt update
sudo apt install -y \
  build-essential pkg-config \
  libx11-dev libxi-dev libxkbcommon-dev \
  libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev \
  libwayland-dev wayland-protocols \
  libgl1-mesa-dev libssl-dev

# Optional for the Simplified Chinese UI when no CJK font is installed:
sudo apt install -y fonts-noto-cjk

cargo run --release

Before submitting changes, run:

cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all-targets --all-features
cargo build --release --locked

Workspaces and compatibility

The v1 application keeps workspace format version 1, the .vistapair.json suffix, the vistapair executable name, and the existing preferences storage key. Workspaces and preferences created by the pre-v1 release candidates remain compatible.

Contributing, security, and license

Contributions are welcome—see CONTRIBUTING.md. Please report vulnerabilities privately as described in SECURITY.md. Release history is recorded in CHANGELOG.md.

VistaPair is available under the MIT License.

About

VistaPair — a fast, GPU-accelerated Rust image comparison viewer

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages