Practice with mock tests, learn from structured notes, and get your questions answered by a global forensic community, all in one place.
Error level analysis amplifies the per-pixel difference between an image and a freshly re-saved copy to reveal regions with inconsistent compression history. This topic explains the operating principle, correct interpretation, known limitations, and the confounding artefacts that generate false signals.
Last updated:
Error level analysis, usually abbreviated ELA, is among the most visually striking tools in image forensics. Take a photograph, save it again at a known quality, compute the difference between the two versions pixel by pixel, and amplify it. Regions that look identical are at compression equilibrium. Regions that look bright have not reached equilibrium, which can mean they came from a different image with a different compression history, or that they contain detail too fine to compress smoothly at the chosen quality.
The appeal of ELA is that it converts an invisible statistical difference into a visible map that is easy to show to a judge or a journalist. That visual accessibility is also its danger. ELA maps can look alarming for entirely innocent reasons, and they can look clean for images that have been carefully manipulated. Misuse of ELA has led to false claims of forgery in photographs that were genuine, including some high-profile cases involving news photography.
This topic covers the operating principle in enough detail to understand what ELA is actually measuring, the correct and incorrect ways to interpret the resulting map, the specific camera and scene characteristics that generate false signals, and what ELA can and cannot prove. The goal is a practitioner who uses ELA as one data point among several, never as a standalone verdict.
Compression is a journey toward equilibrium. ELA shows you who has not arrived yet.
The underlying logic is rooted in the ratchet-like nature of JPEG quantisation. When you first save an image as JPEG at quality Q, the DCT coefficients are divided by the quantisation table and rounded. Some precision is lost. When you save the same image again at the same quality, the coefficients are divided and rounded again, but they are already very close to multiples of the quantisation step. The second rounding changes them by very little. With enough iterations, the values stop changing at all: they have reached equilibrium for that quality setting.
ELA measures how far a region is from that equilibrium. Take the image, re-save it at a fixed quality (commonly 95% in FotoForensics), compute the per-pixel absolute difference, and multiply by an amplification factor. Regions at equilibrium produce small differences: they appear dark. Regions not at equilibrium, because they were recently added, recently edited at a different quality, or simply contain fine detail that never fully equilibrates, appear bright.
The intuition behind the forensic use is that an authentic image has a uniform compression history: every region passed through the same camera processing pipeline, the same JPEG encoder, and the same save step. A manipulated image has at least one region with a different history. That region may not be at the same equilibrium point as the rest of the image and will therefore appear brighter or differently-textured in the ELA map.
Bright is not bad. Bright is different. The question is different from what.
The first principle of correct ELA interpretation is that absolute brightness means nothing: what matters is relative brightness between comparable regions. A bright sky should look uniformly bright. Uniform grass should look uniformly dim or uniformly bright. An anomaly is a region whose brightness is inconsistent with its neighbours and with its texture complexity.
The second principle is that high-frequency content is naturally bright. Sharp edges, fine text, fabric textures, and granular detail never reach compression equilibrium fully at high quality settings because each re-save still changes the high-frequency coefficients measurably. A genuine image of a newsprint page will show uniformly high ELA values across the text and this is not a forgery signal; it is a texture signal.
| ELA observation | Innocent explanation | Forgery-consistent explanation |
|---|---|---|
| Bright rectangular patch | Thumbnail or embedded preview with different quality | Pasted region from higher-quality source |
| Uniformly bright text or labels | High-frequency content never at equilibrium | Labels composited from a different source |
| Dark flat-colour region | Solid fill compresses to near-zero error normally | Could be either |
| Bright edges only (not interiors) | JPEG blocking artefacts at block boundaries | Splice boundary where two images meet |
| Inconsistent brightness compared to same-texture neighbour | Unlikely without cause | Consistent with localised editing |
Cameras and screen captures introduce processing that looks like manipulation to ELA.
Several entirely innocent image-production pathways produce ELA patterns that could be mistaken for splicing or editing. Knowing them avoids false positives.
The practical implication is that ELA findings must always be checked against the claimed provenance. If the image is alleged to be a smartphone portrait, the analyst should obtain a known-genuine image from the same device model and compare ELA responses before concluding that the depth-processing boundary is an edit.
ELA is not a single tool. It is a parametric tool, and the parameter matters.
FotoForensics uses a re-save quality of 95 as its default, and most published ELA analysis uses this convention. But the choice of re-save quality changes the map. At higher re-save qualities, all regions retain more of their original values and the differences are larger overall; subtle anomalies become more visible but so does noise. At lower re-save qualities, aggressive quantisation pushes all regions toward equilibrium quickly and the differences are smaller.
The forensically safe approach is to run ELA at the same quality as the estimated original compression quality. If the source image was compressed at quality 80, re-saving at quality 80 provides the most meaningful equilibrium comparison. Re-saving at quality 95 on an image that was originally compressed at quality 60 will show high ELA values for the entire image, because the image is far from equilibrium at 95, which is mostly uninformative.
ELA is a useful starting hypothesis. It is not a conclusion.
ELA has a specific and limited scope. It detects differences in JPEG compression history. It says nothing about manipulation in lossless-format images (PNG, TIFF). It provides no evidence of manipulation in cases where the edit was applied before the first JPEG save, or where the attacker used a tool that brings the edited region to the same compression equilibrium as the surrounding image. It cannot distinguish object removal or inpainting from authentic content, because neither operation necessarily disturbs the compression history if done carefully.
Choose your tool based on chain-of-custody requirements.
FotoForensics, built by Neal Krawetz, is the most widely known ELA implementation and runs as a web service. It implements ELA, JPEG quality analysis, and several metadata views in one interface, and it is genuinely useful for rapid triage in journalism and education contexts. For casework, uploading evidence to a web service creates chain-of-custody concerns: the image is transmitted to a third-party server, logged, and potentially visible to others. Practitioners should use offline implementations for anything that could become court evidence.
Offline ELA requires only a JPEG encoder library and a few lines of code. In Python, the standard approach uses Pillow to re-save the image and NumPy to compute the per-pixel difference, then amplifies and saves the difference image. This can be reproduced, audited, and documented as part of the casework record in a way that a web service cannot.
Why do regions at compression equilibrium appear dark in an ELA map?
Test yourself on Forensic Audio, Video and Image Analysis with free, timed mocks.
Practice Forensic Audio, Video and Image Analysis questionsSpotted an error in this page? Report a correction or read our editorial standards.