Читать на русском языке 🇷🇺 | English 🇬🇧
PhotoCheck is a powerful, privacy-focused, offline-first web application for precise visual image comparison, alignment, and pixel-difference analysis. Built for game developers, QA engineers, graphic designers, digital archivists, and photography enthusiasts.
It allows you to load two images, align them using AI or multi-point geometric transformations, and spot even the subtlest visual differences using curtain sliders, fade overlays, fast blinking, and pixel difference highlighting.

- 🚀 100% Offline & Single-File Portable: Runs directly in any web browser without installation (
PhotoCheck_Portable.html). Includes embedded OpenCV.js engine and zero external server dependencies. - 🔍 4 Versatile Comparison Modes:
- Curtain (Slider): Drag an interactive vertical or horizontal curtain line to slice between Image A and Image B.
- Overlay (Fade): Adjust Image A transparency (0% to 100%), with manual flash and auto-blink interval controls.
- Side-by-Side (Split): View both images side by side with synchronized panning and zooming.
- Diff Highlighting: Mathematical pixel subtraction (
|Image A - Image B|) with high contrast boost to light up changed pixels in neon colors.
- 🤖 Comprehensive Alignment Tools:
- AI Auto-Align (OpenCV): Uses ORB keypoint detection + RANSAC homography for automatic feature matching.
- Auto Edge Match: Fast multi-resolution ZNCC (Zero-Mean Normalized Cross-Correlation) alignment on hybrid Sobel gradient and contrast maps. Automatically filters out dark background bars to lock onto UI text, game scenes, and edges.
- 1-Point Alignment: Center and translate Image B to align a single reference point.
- 2-Point Alignment: Align position and scale relative to 2 reference points.
- 3-Point Alignment: Affine rotation, scaling, and translation matching 3 reference points.
- 4-Point Perspective Warp: Homography transformation to correct tilted document scans, angled camera shots, or distorted photos.
- 🔎 Ultra-Zoom up to 1000%: Synchronized panning and focal-point mouse wheel zooming up to 10x magnification.
- 🌐 Full Multi-Language Support (i18n): On-the-fly switching between English 🇬🇧 and Russian 🇷🇺.
- 📊 Metadata & Inspection Panel: Detailed resolution, file format, file size, color depth, alpha channel, and DPI inspection.
Simply download PhotoCheck_Portable.html from this repository and open it in any modern web browser (Chrome, Firefox, Edge, Safari, Opera).
# 1. Clone repository
git clone https://github.com/Nikitamce/Fhoto-Difference-etc.git
cd Fhoto-Difference-etc
# 2. Install dependencies
npm install
# 3. Start local development server
npm run devTo bundle the application into a single standalone HTML file:
npm run buildThe output will be created in dist/index.html. Copy dist/index.html to PhotoCheck_Portable.html.
We welcome contributions to translate PhotoCheck into new languages (German, French, Spanish, Chinese, Japanese, etc.)!
-
Fork & Clone Repository:
git clone https://github.com/Nikitamce/Fhoto-Difference-etc.git cd Fhoto-Difference-etc -
Add Translation Dictionary in
src/i18n.js: Opensrc/i18n.jsand add your language code (e.g.defor German) inside thetranslationsobject:const translations = { ru: { ... }, en: { ... }, de: { appTitle: "PhotoCheck — Visueller Fotovergleich", modeSlider: "Vorhang (Slider)", modeFade: "Überlagerung (Fade)", // Translate all remaining key-value pairs } };
-
Add Language Option to Dropdown in
index.html: Insideindex.html, locate#lang-dropdown-menuand add your new language button:<button class="dropdown-item lang-option" data-lang="de">🇩🇪 Deutsch (DE)</button>
-
Update Language Switcher Flag & Code in
src/i18n.js: InI18nManager.updateUI(), add your flag and code handler:if (this.currentLang === "de") { currentFlagEl.textContent = "🇩🇪"; currentCodeEl.textContent = "DE"; }
-
Test Your Translation Locally:
npm run dev
-
Build & Submit a Pull Request (PR):
npm run build git checkout -b feature/add-german-translation git add src/i18n.js index.html PhotoCheck_Portable.html git commit -m "feat(i18n): Add German translation" git push origin feature/add-german-translationOpen a Pull Request on GitHub to
Nikitamce/Fhoto-Difference-etc. We will review and merge it intomain!
- Core: Vanilla JavaScript (ES6+ Modules), HTML5 Canvas 2D.
- Styling: Vanilla CSS3 with CSS Variables, Flexbox, CSS Grid, and Glassmorphism design tokens.
- Computer Vision: OpenCV.js (Embedded WASM / JS) for ORB feature detection & RANSAC homography.
- Algorithms: Multi-resolution Coarse-to-Fine Sobel Gradient ZNCC (Zero-Mean Normalized Cross-Correlation), Bilinear feature map interpolation.
- Bundler: Vite +
vite-plugin-singlefilefor zero-dependency single-file HTML compilation.
Distributed under the MIT License. See LICENSE for details.