Skip to content
AithaEzioPublic

About

Zero-dependency single-file WebGL 2 pixel-level image & video comparator with OKLab ΔE heatmaps, loupe, blink comparator, and 4 darkroom themes.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PIXELDIFF logo

PIXELDIFF

A pixel-level comparison instrument for images and videos — in one offline HTML file.

Up to 5 Images or Synchronized Videos · WebGL 2 · OKLab ΔE Heatmaps · Zero Dependencies

Launch Live Web App Download PIXELDIFF v1.0.0

Single-File HTML WebGL 2 Version 1.0.0 100% Local and Offline MIT License

Get started · Features · Screenshots · Themes · Shortcuts · Privacy

PIXELDIFF Safelight theme showing real-time WebGL 2 OKLab ΔE Turbo heatmaps, Laplacian variance sharpness scores, and quantitative difference metrics across 3 slots

PIXELDIFF is a zero-dependency, single-file WebGL 2 visual comparison instrument built for judging locally generated diffusion outputs, upscalers, LoRAs, image compression, and multi-take video renders at the pixel level.

Its core design thesis is simple: the instrument is dark so the image can be bright. All neon accents live strictly in the rails, deck, and data — the matte directly surrounding your media stays a calibrated neutral grey (0 / 18 / 50 / 80) so colored chrome never biases your eye.


Get started

Option 1 — Launch instantly in your browser (GitHub Pages)

Open https://aithaezio.github.io/PixelDiff/ — everything runs 100% client-side in your browser; your images and videos are never uploaded.

Option 2 — Download for offline use (one HTML file)

  1. Download PixelDiff.html from the latest release.
  2. Double-click PixelDiff.html to open it in any Chromium browser (Chrome, Edge, Brave, Arc — recommended for full requestVideoFrameCallback frame-accurate Video Mode).
  3. Drag and drop up to 5 images or videos, click +, or press Ctrl+V to paste from clipboard.

Features

8 Real-Time WebGL 2 Comparison Modes

Powered by one unified WebGL 2 fragment shader with smooth morphing transitions, synchronized linked zoom/pan (0 Fit, 1 1:1 native pixels, pixel grid G), and instant reference promotion (Shift+1…5 or R):

  • Side (S) — Compare up to 5 candidates simultaneously in an auto-fit or custom column grid.
  • Split (W) — Vertical or horizontal wipe comparing every candidate directly against the reference.
  • Overlay (V) — Smooth crossfade blend.
  • Loupe (L) — Interactive reference disc with adjustable radius ([ / ]), feather, cursor follow, invert, and spotlight mode.
  • Box (B) — Draggable reference inspection window.
  • Onion (O) — Tinted ghost frame overlay (in Video Mode: First, Last, At, Live, or decaying motion Trail ring).
  • Heat (H) — Real-time difference heatmap with 5 metrics (ΔE OKLab HyAB perceptual difference, Luma, RGB max-channel, ± signed drift, Edge Laplacian structure) and 5 perceptual colormaps (Turbo, Inferno, Viridis, Magma, Mono) plus live Gain, Floor threshold, and Reference Context controls.
  • Blink (K) — Astronomer's blink comparator flipping between reference and candidate in place at adjustable Hz.

Quantitative Inspection Rail

  • Pixel Probe (P): Live raw file RGB + OKLab HyAB ΔE under the cursor (color management is intentionally disabled so the bytes you probe are the exact bytes in the file).
  • Difference from Reference: Live Mean ΔE, Max ΔE, closest-candidate callout, and % of pixels above floor read straight from a live ΔE histogram.
  • Per-Source Scores: Laplacian Variance sharpness, Immerkær fast edge-insensitive noise estimator, highlight/shadow clipping %, and mean luma.
  • Histogram & Waveform: Live per-slot RGB/Luma histogram and luma waveform monitor.
  • Auto-Align & Nudge (Alt + Arrows): Automatic ±8 px strided luma SAD registration so slightly shifted crops or generations still produce accurate heatmaps.
  • Verdict, Stage Filters & Export: Mark candidates (Marked only / Hide reference), sort slots by ΔE, rate takes with stars, and export annotated results.

Synchronized Multi-Video Mode

  • Independent Video Mode with its own master clock and rate-trim drift correction (soft 60 ms / hard 150 ms deadband so 5 clips stay locked without seek stutter).
  • Playback speed (¼×–4×), frame-accurate stepping (← / → or , / .), Time / Progress / Frame alignment modes, In/Out loop markers (Shift+I / Shift+O), 40-frame filmstrip, and motion trail ring.

Blackout Mode (\) & Motion Control

  • Press \ (or click the corner brackets) to collapse every rail to zero for 100% fullscreen media judgment.
  • Choose Motion: Full / Reduced / Off (automatically honors prefers-reduced-motion).

Screenshots

PIXELDIFF Heat mode with Luma metric and Inferno colormap
Heat Mode — 5 Metrics × 5 Perceptual Colormaps
PIXELDIFF Loupe mode with RGB histogram and waveform monitor
Synchronized Loupe + Live Histogram & Waveform
PIXELDIFF Side-by-side multi-slot comparison with live ΔE pane tags
Multi-Slot Side-by-Side Grid with Live ΔE Readouts

Themes

Press T anytime to cycle between 4 darkroom & lab themes with smooth CSS @property color interpolation:

PIXELDIFF Safelight theme
Safelight — Darkroom oxide black, neon amber & magenta
PIXELDIFF Ultraviolet theme
Ultraviolet — Conservator UV violet & electric cyan
PIXELDIFF Halide theme
Halide — Clinical film-base blue X-ray lightbox
PIXELDIFF Deep Field theme
Deep Field — Narrowband astrophotography with parallax starfield rails

Keyboard shortcuts

Context Shortcuts
Compare Modes S Side · W Split · V Overlay · L Loupe · B Box · O Onion · H Heat · K Blink
Zoom & Navigation 0 Fit · 1 Actual pixels (1:1) · + / - Zoom (Alt for 1% steps) · Wheel zoom (Shift 2×, Alt fine) · Middle-drag or Alt+Drag Pan
Inspection & Slots P Pixel probe · G Pixel grid · [ / ] Loupe radius · Shift+1…5 Set reference · R Cycle reference · Alt+Arrows Nudge hovered pane alignment · Ctrl+V Paste
Video Mode Space Play/Pause · ← / → or , / . Step 1 frame · Shift+←/→ Skip 1s · Home / End First/Last frame · < / > Slower/Faster · Shift+I / Shift+O Mark In/Out · M Mute
Global Shell T Next theme · \ Blackout (hide all chrome) · ? Shortcuts help

Privacy & offline design

  • 100% Local Processing: Every WebGL shader pass, OKLab ΔE measurement, histogram, waveform, and video frame runs strictly inside your browser's local memory. No files leave your machine, and there are zero trackers or external JS libraries.
  • Zero Build Step: The entire app lives in index.html (distributed as PixelDiff.html on Releases).
  • Verifying a release download:
Get-FileHash .\PixelDiff.html -Algorithm SHA256

Changelog

See CHANGELOG.md for full release notes.


Credits & License

Licensed under the MIT License — free to use, modify, and distribute with the copyright notice intact.


Support the creator

Made by Aitha & AI. If PIXELDIFF helps your workflow, consider supporting Aitha on Ko-fi or exploring Aitha's other projects on GitHub.

About

Zero-dependency single-file WebGL 2 pixel-level image & video comparator with OKLab ΔE heatmaps, loupe, blink comparator, and 4 darkroom themes.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages