Skip to content

Repository files navigation

Vantage Icon

Vantage Image Compare

Synchronized multi-image comparison for Visual Studio Code

VS Marketplace VersionInstalls


Compare two or more images side-by-side in an adaptive mosaic grid with synchronized zoom and pan, pixel-level difference highlighting, and an overlay mode for rapid A/B switching — all without leaving VS Code. Can also be used to view single images with all the same zoom and pan controls.

✨ Features

  • View a single image or compare multiple images in one panel.
  • Use Mosaic mode for side-by-side review or Overlay mode for quick A/B switching.
  • Zoom and pan are synchronized so every image stays aligned while inspecting details.
  • Optionally enable pixel-diff to highlight per-pixel changes against a reference image.
  • Load images from Explorer context menu, the Vantage sidebar, or drag-and-drop into the panel.
  • Optional paired-folder comparison lets you step through matched filenames across selected folders.

🚀 Getting Started

From the Marketplace

  1. Install Vantage Image Compare from the Extensions panel
  2. Right-click one or more images → Vantage: Open

To use Vantage as your default image viewer, run Vantage: Set as Default Image Viewer from the Command Palette.

From the Command Palette

Run Vantage: Start (Ctrl+Shift+P / Cmd+Shift+P) to open an empty panel, then load images via right-click, sidebar, or drag & drop.

From the Sidebar

  1. Open the Vantage view in the Activity Bar
  2. Set a folder path and optionally filter by pattern
  3. Select images → Click Open in Editor
  4. For paired mode, select 2+ folders → Start Paired Comparison (Selected Folders)

🎮 Controls

InputAction
Scroll wheelZoom in/out centered on image (synced)
Click + dragPan all images
Mode selectorToggle Mosaic ↔ Overlay
Alt+1Alt+9Jump to image 1–9
Ctrl+Alt+DownNext image
Ctrl+Alt+UpPrevious image
Ctrl+Alt+RightNext matched pair (paired mode)
Ctrl+Alt+LeftPrevious matched pair (paired mode)
Zoom inputType a zoom percent (e.g., 125 or 125%) and press Enter/blur to apply
buttonReset view to default pan/zoom
Fit buttonToggle visual scale normalization across different resolutions
? buttonShow shortcut help overlay
Differences checkboxToggle pixel diff visualization
Reference / Active dropdownSet the reference or active image, and remove images

📂 Supported Formats

PNG · JPEG · GIF · WebP · BMP · SVG


⚙️ Configuration

Default Image Viewer

Vantage can be set as your default image viewer in VS Code. By default, VS Code's built-in image viewer is used.

To set Vantage as the default image viewer:

  1. Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Run Vantage: Set as Default Image Viewer
  3. Reload the window when prompted

To disable it:

  1. Open Settings (Ctrl+, / Cmd+,)
  2. Search for "Vantage"
  3. Uncheck Default Image Viewer
  4. Reload the window when prompted

Note: When disabled, you can still use "Open With..." context menu to open images in Vantage.


🛠 Development

Prerequisites

Setup

git clone https://github.com/Christophernph/vantage.git
cd vantage
npm install
npm run compile

Press F5 to launch the Extension Development Host, then run Vantage: Start from the Command Palette.

Scripts

CommandDescription
npm run compileBuild the extension
npm run watchRebuild on file changes
npx @vscode/vsce package --skip-licensePackage as .vsix

Project Structure

vantage/
├── src/
│ ├── extension.ts # Extension entry point & command registration
│ ├── ImageDiffPanel.ts # Webview panel for image comparison
│ └── SidebarProvider.ts # Tree view sidebar provider
├── media/
│ ├── main.js # Webview frontend logic
│ └── style.css # Webview styles
├── .github/
│ └── workflows/
│ └── publish.yml # CI/CD publish workflow
├── package.json
└── tsconfig.json

🤝 Contributing

Contributions are welcome! Here's how to get involved:

  1. Fork the repository
  2. Create a branch for your feature or fix:
    git checkout -b feat/my-feature
  3. Make your changes and verify:
    npm run compile # Must complete without errors
  4. Test in the Extension Development Host (press F5)
  5. Commit with a clear message following Conventional Commits:
    feat: add support for TIFF images
    fix: prevent pan drift on zoom reset
    
  6. Push and open a Pull Request against main

Reporting Issues

Found a bug or have a feature request? Open an issue with:

  • Steps to reproduce (for bugs)
  • Expected vs actual behavior
  • VS Code version and OS

📄 License

No license has been specified yet.


Made with 🔍 for pixel perfectionists

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages