Error Level AnalysisRutvij Khatri•9 min read•Published 2026-10-14

How to Detect Photoshopped Images Using Error Level Analysis (ELA)

Learn how JPEG quantization tables and compression error deltas expose digital image tampering, airbrushed textures, and copy-move forgeries.

Executive Verdict & Direct Answer
✓ 100% Client-Side In-Browser Engine

Learn how JPEG quantization tables and compression error deltas expose digital image tampering, airbrushed textures, and copy-move forgeries. Authentic photos exhibit uniform compression error across surfaces of similar texture. Spliced or edited elements diverge sharply in error brightness.

The Mechanics of JPEG Quantization and Generational Loss

JPEG is a lossy image format governed by the Discrete Cosine Transform (DCT). During compression, an image is divided into 8x8 pixel blocks. Spatial frequencies in each block are converted into frequency coefficients and divided by a standardized quantization table, rounding off high-frequency details that human vision is less sensitive to.

Whenever a JPEG image is saved repeatedly at a specific quality level (for example, 75%), the quantization errors across similar textures reach a state of mathematical equilibrium. The rate of error change flattens out.

However, when an image is modified in editing software—such as Photoshop, GIMP, or Canva—and spliced with foreign elements, the newly introduced pixels have not undergone identical historical compression cycles. This discrepancy creates a sharp divergence in the compression error rate.

Key Investigative Takeaway

Authentic photos exhibit uniform compression error across surfaces of similar texture. Spliced or edited elements diverge sharply in error brightness.

Interpreting ELA Visuals: White Highlights vs. Dark Residuals

When analyzing an Error Level Analysis map generated by OverlayCheck, examiners inspect the relative brightness of pixels across the canvas:

1. High-Brightness Highlights (Glowing White/Cyan): Indicate areas that degraded significantly during re-compression. These represent either high-frequency edges, freshly added graphics, or higher-quality insertions that have not reached generational equilibrium.

2. Dark Residuals (Deep Purple/Black): Indicate areas that underwent little or no change during re-compression. While smooth solid backgrounds naturally compress easily, completely flat black zones in textured areas often reveal digital airbrushing, cloning, or cloned smoothing masks.

Step-by-Step ELA Verification Playbook

1. Open the OverlayCheck Error Level Analysis Tool.

2. Load the suspect JPEG image into the browser window. The processing executes in WebAssembly without cloud transmission.

3. Set the re-compression quality slider to 75% (the universal forensic baseline standard).

4. Increase the error amplification slider to 20x to emphasize subtle 8x8 block discrepancies.

5. Activate the interactive split-screen loupe to examine suspect edges, text overlays, and subject contours side-by-side with original pixels.

Real-World Forensic Case Study: Detecting Copy-Move Forgery in Insurance Damage Claim

Scenario: A claimant submitted a photograph of a vehicle with severe collision damage to an auto insurance adjuster, claiming total loss.

Methodology: The investigator loaded the photo into OverlayCheck ELA. While the car body exhibited uniform dark purple residuals at 75% quality, a cracked bumper segment glowed bright white, indicating it was copied from a different, higher-resolution photo.

Outcome & Verdict: The claim was denied for fraudulent digital manipulation, saving the insurer over $14,000.

ELA Forensic Platforms: OverlayCheck vs. Cloud Forensics Services

Comparing forensic accuracy, real-time interactivity, privacy protection, and mobile support.

Feature / DimensionOverlayCheck (Client-Side)FotoForensics (Cloud-Based)Forensically (Web-Based)
Processing Architecture
100% Client-Side In-Browser (0ms upload)
Cloud Server (Upload required)Client-Side HTML5 Canvas
Interactive Split-Screen Loupe
Real-time 60fps magnifying loupe
Static reloaded PNG imagesFixed magnification magnifier
Dynamic Quality Tuning
Real-time dynamic slider (50% - 95%)
Fixed single quality passAdjustable quality settings
Data Privacy & Retention
Zero data retention (RAM only)
Publicly indexes uploaded imagesZero retention

Command-Line Automation & CLI Workflows

For security engineers and forensic examiners automating pipelines or conducting terminal audits, the equivalent low-level commands can be executed natively:

Generate ELA Difference Map with ImageMagick
bash
magick suspect.jpg -quality 75 temp_75.jpg && magick compare -metric RMSE suspect.jpg temp_75.jpg -compose difference -auto-level ela_output.png
Technical Breakdown: Re-compresses the suspect image at 75% JPEG quality and computes the absolute pixel-wise difference amplified by auto-leveling.

Frequently Asked Technical Questions

Q1:Can ELA be performed on PNG images?

No. ELA relies on lossy DCT quantization tables unique to JPEG and WebP. For lossless PNG images, use bit-plane slicing, pixel math XOR, or Laplacian edge filters.

Q2:Does high brightness always prove an image is fake?

No. Natural high-contrast edges (such as black text on white paper or tree branches against the sky) naturally produce high compression error. Always compare suspect regions against similar authentic textures in the same image.

#error level analysis online#detect photoshopped image#how to use ela#image forensics tool#jpeg compression artifacts
RK
Rutvij KhatriSecurity Analyst & Aspiring Security Engineer

Security Analyst and Aspiring Security Engineer passionate about client-side media verification, binary parsing, web application security auditing, CTF steganography challenges, and zero-knowledge privacy architecture.

Connect on LinkedIn

Companion Verification & Privacy Toolkits

Cross-Cluster Workflows

Related Deep Dives in Error Level Analysis