Ai SizsAi Sizs

Compare Image Similarity & Detect Photo Blur — Free, Private, Instantly in Your Browser

Drop two photos to measure structural similarity with SSIM and visualize pixel-level differences in a red-yellow heatmap. Or upload one photo to get a precise 0–100 sharpness score via Laplacian variance analysis with blue blur-zone overlays. All computation runs client-side — zero uploads, zero tracking, instant results. Built for photographers, QA testers, forensic analysts, and anyone who needs trustworthy image forensics without risking their data.

add_photo_alternate Image A Drop or click to upload
add_photo_alternate Image B Drop or click to upload

How SSIM Comparison Works — Structural Similarity Explained

SSIM (Structural Similarity Index Measure) is the academically recognized gold standard for perceptual image quality assessment, cited in over 50,000 research papers since its publication by Wang, Bovik, Sheikh, and Simoncelli (2004). Unlike naive MSE pixel subtraction — where a one-level global brightness shift is treated identically to a structural defect — SSIM decomposes every 8×8 image patch into three independent perceptual dimensions: luminance, contrast, and structure. The result is a scientifically meaningful similarity percentage that mirrors how the human eye actually perceives differences, making it the definitive choice for photographers, QA teams, and forensic analysts comparing image pairs.

Luminance · Contrast · Structure: The Three SSIM Components

Each 8×8 patch comparison computes three multiplicative scores. Luminance (l) evaluates mean brightness between the two patches, catching exposure shifts, gamma corrections, and global illumination mismatches. Contrast (c) measures local standard deviation to detect texture strength differences — two images may share identical luminance but differ dramatically in fine detail richness. Structure (s) normalizes both signals to unit standard deviation and computes their cross-correlation, isolating genuine spatial pattern deviations from lighting artifacts. The final SSIM index for each patch equals l × c × s, yielding a value between -1 (perfectly anti-correlated) and 1 (identical). The tool then averages all patch scores into a single MSSIM percentage displayed in the result panel.

8×8 Sliding Window with 50% Overlap — Smooth, Artifact-Free Maps

To generate spatially smooth similarity maps without checkerboard artifacts, the SSIM kernel slides across both images at a fixed 4-pixel stride (50% overlap between adjacent 8×8 windows). Each overlapping window contributes its local SSIM value to a running Mean SSIM accumulator. This interleaved design prevents the block-boundary discontinuities that plague non-overlapping approaches while roughly quadrupling computation — a cost well within modern browser budgets even at 4096px resolutions. Dynamic range stabilization constants K₁ = 0.01 and K₂ = 0.03 prevent division-by-zero instability in low-variance regions like sky gradients or solid-color backgrounds.

Red-Yellow Difference Heatmap — See Exactly Where Images Diverge

The difference map is rendered as a semi-transparent red-through-yellow heatmap overlaid onto Image A via HTML5 Canvas alpha compositing. Regions scoring SSIM ≥ 0.99 remain fully transparent, leaving the original photograph visible. Areas dropping below 0.99 receive a red overlay whose opacity scales in proportion to dissimilarity magnitude; moderate differences transition through orange to yellow. This overlay strategy lets you spot at a glance whether the mismatch is a global color shift or a localized structural change — for example, identifying that an image was only cropped rather than edited, or that a watermark was added to a specific corner. The final composite is rendered using an offscreen canvas with proper drawImage-based alpha blending for artifact-free output.

Laplacian Blur Detection — From Pixels to a 0–100 Sharpness Score

Photo blur is the #1 technical rejection reason in stock photography, surveillance footage review, and pre-print quality control. Yet most "sharpness checkers" are either AI black boxes you can't trust or clunky desktop software requiring installation. Our Laplacian variance detector solves this with classical computer vision mathematics — a 3×3 discrete Laplacian kernel convolves across the image's grayscale channel computing second spatial derivatives at every pixel. The variance of the resulting response map is log-normalized to a human-readable 0–100 percentage score displayed to one decimal place, with a companion blue heatmap highlighting exactly which regions suffer from focus falloff, motion blur, or lens softness.

3×3 Laplacian Convolution — The Kernel, The Math, The Meaning

The engine first converts your photo to grayscale using the BT.601 luminance formula (Y = 0.299R + 0.587G + 0.114B), matching how camera sensors weight color channels for perceived brightness. It then applies the isotropic 4-neighbor Laplacian kernel [0,1,0; 1,-4,1; 0,1,0] to every interior pixel. Unlike first-derivative edge detectors (Sobel, Prewitt) that only find boundaries, the Laplacian's second-derivative nature measures how abruptly intensity changes — sharp focus produces high-magnitude responses at edges, while blur smears these transitions toward zero. The variance of all Laplacian responses is then computed and transformed via log₁₀(variance + 1) × 35 to produce a stable 0–100 score resistant to outlier pixel noise. This metric has been a staple in computer vision since the 1980s, used in DSLR autofocus systems and industrial QA pipelines worldwide.

Five Sharpness Tiers with Descriptive Labels

The resulting 0–100 score maps to five intuitive sharpness categories, each with a distinct color-coded progress bar: Excellent Sharpness (80.0–100.0) — crisp, high-edge-energy images ready for professional printing or publication; Good Sharpness (60.0–79.9) — adequately focused photos with acceptable minor softness; Moderate Blur (40.0–59.9) — noticeable focus issues or mild motion blur; Significant Blur (20.0–39.9) — severely degraded images unsuitable for most use cases; Severe Blur (0.0–19.9) — extremely defocused or heavily motion-smeared captures. Because the score displays to one decimal place, you can track small sharpness improvements across multiple retakes — for instance, comparing 73.2 vs. 77.8 when adjusting your camera's focus ring.

Blue Blur-Region Heatmap — Pinpoint Exactly Where Focus Fails

A global sharpness score alone cannot tell you which part of the image is blurry — a critical distinction when evaluating portraits with intentional background bokeh, landscape shots with depth-of-field falloff, or product photos where edge sharpness matters most. The blur-region heatmap solves this by overlaying a semi-transparent blue tint on every pixel whose absolute Laplacian response falls below 15% of the image's maximum detected edge magnitude. Blue intensity scales inversely with Laplacian strength: deep navy blue signals severely blurred zones, while sharp edges and high-texture regions pass through fully transparent. The final composite renders via offscreen Canvas alpha blending for artifact-free visualization. Photographers can instantly verify that the subject's eyes are sharp while the bokeh background correctly registers as blurred — distinguishing optical depth-of-field from technical focus failure.

100% Client-Side — Your Images Never Leave Your Device

In an era where "free online tool" often means "we harvest your data," Ai Sizs takes the opposite approach. Every single computation — SSIM window comparison, Laplacian kernel convolution, grayscale conversion, heatmap compositing — executes inside your browser's JavaScript runtime using the HTML5 Canvas API. No image pixels, no EXIF metadata, no analysis results, and no behavioral telemetry ever leave your device. You can disconnect from the internet entirely after the page loads, and both analysis engines continue working perfectly offline. This architecture is verified at the code level: both similarity.js and blur-detector.js are self-contained vanilla scripts with zero network calls, zero fetch() statements, and zero XMLHttpRequest usage.

No Registration · No Cookies · No Cloud Processing

Ai Sizs operates without login walls, account creation, or tracking cookies. There is no backend server to POST images to, no processing queue, and no cloud GPU cluster. Every analysis runs locally on your CPU via optimized vanilla JavaScript. This means zero latency waiting for server responses, zero risk of your sensitive photographs appearing in a data breach, and zero compliance headaches for professionals handling confidential visual material — legal evidence photographs, pre-release product shots, medical imaging references, or proprietary design mockups. Close the browser tab, and every byte of image data evaporates from temporary memory with no residual storage.

Air-Gapped Architecture — Works Offline After First Page Load

Because both analysis engines are pure client-side JavaScript with no external API dependencies, the tool remains fully functional after you disconnect from the internet. All assets — HTML, CSS, JavaScript, and icon fonts — are self-hosted on the domain with no CDN dependencies. This air-gapped design serves professionals in high-security environments: forensic labs with restricted network access, photographers reviewing shots in remote locations without connectivity, and enterprise users subject to data residency regulations that prohibit cloud-based image processing services.

Aligned with 345tool Core Principles: Convenient · Simple · Beautiful

The 345tool collective builds every tool around three non-negotiable UX principles. Convenient: drag-and-drop interface, instant results, no setup required. Simple: single-purpose tools that do one job exceptionally well rather than bloated suites with feature sprawl. Beautiful: clean, dark-themed interfaces with responsive layouts that work equally well on desktop and mobile. Ai Sizs embodies all three — drop your images, click one button, and receive pixel-level forensic analysis in under a second for typical resolutions.

Frequently Asked Questions — Image Forensics & Tool Usage

Common questions about SSIM similarity comparison, Laplacian blur detection, privacy architecture, and practical usage of the Ai Sizs image forensics toolkit.

What is SSIM, and how does it beat pixel-by-pixel comparison?

expand_more

SSIM (Structural Similarity Index Measure, Wang et al. 2004) evaluates three perceptual dimensions — luminance, contrast, and structure — within localized 8×8 pixel windows using a 50% stride overlap. Traditional MSE (Mean Squared Error) subtracts per-pixel RGB values naively, treating a one-level global brightness shift identically to a structural defect. SSIM's perceptually aligned scoring means two images with identical structure but different exposure will score near 100% similarity, while MSE wrongly reports them as highly dissimilar. This is why SSIM is the academic standard for image quality assessment, referenced in tens of thousands of peer-reviewed publications across computer vision, medical imaging, and broadcast engineering.

What Laplacian kernel is used for blur detection?

expand_more

The engine applies the isotropic 4-neighbor discrete Laplacian operator [0,1,0; 1,-4,1; 0,1,0] to the BT.601 grayscale channel, computing the second spatial derivative at every interior pixel. This kernel is rotationally symmetric — it responds equally to edges in all orientations, unlike directional operators such as Sobel or Prewitt that favor vertical or horizontal gradients. The Laplacian's second-derivative property makes it uniquely sensitive to edge transition crispness: sharp focus yields high-magnitude responses, while blur smears these transitions toward zero. The variance of the full Laplacian response map is then log-normalized to a 0–100 score. This technique (variance of Laplacian) has been a cornerstone of computer vision sharpness estimation since the 1980s and is used in commercial DSLR autofocus contrast-detection systems.

Does this tool upload my images to any server?

expand_more

No. Not a single pixel leaves your device. Both analysis engines (similarity.js for SSIM comparison and blur-detector.js for Laplacian analysis) are self-contained vanilla JavaScript files with zero network calls — no fetch(), no XMLHttpRequest, no image upload endpoints. All computation uses the HTML5 Canvas API directly in your browser's JavaScript runtime. You can verify this by opening your browser's Network tab while running the tool: you will see zero outbound image data. The tool works perfectly even if you disconnect from the internet after the page loads. This makes Ai Sizs particularly suitable for confidential photographs, legal evidence images, proprietary product shots, and any scenario where data sovereignty is non-negotiable.

Which image formats and file sizes are supported?

expand_more

PNG, JPEG, and WebP formats are accepted with a per-file size limit of 5 MB. Images exceeding 4096 pixels on either edge are automatically downscaled proportionally to fit within browser memory budgets while preserving aspect ratio. For SSIM comparison, both images are normalized to the smaller image's dimensions to ensure valid structural comparison across different resolutions. For the blur detector, we recommend uploading images at full native resolution — the Laplacian variance metric is resolution-sensitive; downscaling can mask subtle blur artifacts. The tool also handles EXIF orientation tags correctly for JPEG files, ensuring portrait-mode smartphone photos are analyzed in their proper orientation.

Can I integrate these algorithms into my own workflow?

expand_more

Ai Sizs is an interactive browser utility, not a REST API — there is no server endpoint to POST images to because all computation runs locally. However, both similarity.js and blur-detector.js are self-contained vanilla JavaScript modules with zero external dependencies. Developers can inspect them directly in browser DevTools (they load as readable source files, not minified blobs), extract the core SSIM and Laplacian variance algorithms, and integrate them into automated Node.js pipelines using node-canvas for Canvas API emulation or sharp for image preprocessing. The SSIM implementation follows the original Wang-Bovik-Sheikh-Simoncelli formulation with K₁=0.01, K₂=0.03 stabilization constants and 8×8 windows at 4px stride. The Laplacian detector uses the standard 4-neighbor kernel with log₁₀-normalized scoring.

Who built Ai Sizs and what is the business model?

expand_more

Ai Sizs is engineered, maintained, and hosted by 345tool, an independent international developer collective specializing in lightweight, privacy-first browser utilities that replace bloated internet tools. The platform operates on a zero-tracking, zero-registration, zero-data-collection model. Monetization relies exclusively on non-disruptive, contextually relevant banner placements positioned outside the core analysis interface. Over time, these placements transition into premium B2B link partnerships with verified technical organizations in adjacent fields (computer vision, photography equipment, software development). No user data, image content, or behavioral analytics are ever collected, packaged, or sold. For transparency, the full source code of both analysis engines is readable directly in the browser.

345tool Team

345tool Team

We are the 345tool Team

345tool is an independent developer collective engineering elite, pure client-side, and privacy-first web utilities to replace bloated internet tools.

Visit 345tool.com →