Error level · noise · quantisation tables · copy-move · indicators only

Photo Forensics Analyzer

Look at a JPEG, PNG or WebP the way a photo examiner starts: compression levels, noise, tables, metadata and repeated regions. It points at things to check; it never says a picture is real or fake.

These are indicators, not proof. Every map also reacts to ordinary things such as edges, resizing and repeated texture, and a picture shared through a messaging app or social network is recompressed, which erases most traces. Do not use this page to accuse anyone or as the only evidence for a decision.

Picture

JPEG, PNG or WebP

Drop a picture here or click to choose

Up to 40.00 MB, 60 megapixels.

Settings

The picture is saved again at this JPEG quality and compared with itself. Use about 90 for pictures saved around 90 or higher, lower for more compressed ones.

Results

Open a picture and press Analyse. The maps, table checks and a PDF report appear here.

Photo Forensics Analyzer

Operator: Abdulla Al Fahad. How tools are built and checked

When someone asks whether a photograph has been edited, an examiner starts with a handful of independent questions: how was the file compressed, does it look as if it was compressed twice, does the noise look like one sensor's, does the metadata agree with itself, and does any region repeat? This page asks those questions of a JPEG, PNG or WebP and lays out the evidence panel by panel.

None of it is a verdict. Every map also responds to ordinary things such as edges, resizing and repeated texture, and a picture that went through a messaging app or social network has been recompressed, which erases most traces. The page never says a picture is real or fake, and the report it writes says so on its first page.

What it can do well is narrow a question: whether the quantisation tables are the standard ones at a certain quality, whether the EXIF thumbnail still shows the picture it was stored with, or whether a patch of texture appears twice at the same shift, with the caveat that recompression can hide a copy.

Key features

  • Error level analysis: the picture is saved again at a quality you choose and the difference is amplified
  • A noise residual map from a 3 × 3 median filter and a luminance gradient map
  • JPEG tables: every quantisation table is read and compared with the standard IJG tables at each quality, and the estimate is exact or reported as non-standard
  • A double-compression test on the luma coefficient histograms, with a reliability warning for flat images
  • Metadata checks (dates, camera fields, software, XMP creator tool, pixel size), an EXIF thumbnail comparison, and a copy-move search, with a PDF report

What each check measures and where it fails

For JPEG, the page walks the marker segments, reads the frame header, quantisation tables, restart interval and every application segment, and decodes the baseline Huffman stream to the quantised luma coefficients. Progressive JPEGs are parsed for tables and metadata, but the coefficient test is skipped because it needs a multi-pass decoder.

Quality is estimated by rebuilding libjpeg's tables from the Annex K standard tables at qualities 1 to 100 and comparing them with the file's. A file written by libjpeg or libjpeg-turbo, which many programs and browsers use, matches exactly at some quality; camera firmware, mozjpeg and Adobe encoders use their own tables and match none.

PNG and WebP files get the pixel maps and copy-move search only. A PNG can still have started life as a JPEG, so a clean result on a PNG proves nothing about its history.

The PDF report contains the file's SHA-256, its size and dimensions, the date it was made, every observation, the settings, and each panel with a how-to-read note.

How it works

Error level analysis re-encodes the picture with the browser's JPEG encoder at your quality and shows the largest per-channel difference. Regions saved at different qualities or edited and re-saved settle at different levels, which is the pattern to look for.

The double-compression score takes the histograms of eight low-frequency coefficients, removes the smooth envelope, and measures the strongest repeating component. A second quantisation with a coarser first step leaves periodic gaps that a single one does not.

Copy-move search whitens the spectrum of the luma plane and transforms it back, which turns any repeated region into a sharp peak at the shift between the copies. Each strong peak is then checked block by block, comparing 16 × 16 textured blocks with their shifted partners, and a shift is reported only when at least 24 blocks match to within 5 grey levels. JPEG compression works on an 8 × 8 grid, so a copy pasted at a shift that is not a multiple of 8 pixels is quantised differently from its source once the file is saved again; the match then weakens or disappears. A copy at an 8-aligned shift survives recompression far better.

When this helps

  • An insurance adjuster receives a damage photo and wants to know if the EXIF thumbnail still shows the same scene: a low correlation prompts a request for the original.
  • A picture editor sees a repeated patch of bricks in a retouched wall: the copy-move map marks both areas, and the editor judges whether the pattern is the wall's own.
  • A researcher compares ten files from one camera: the same non-standard quantisation tables in all ten, and a different set in the eleventh, flag it for a closer look.

Opening a file

  1. Open a JPEG, PNG or WebP of up to 40 MB and 60 megapixels.
  2. Set the ELA quality close to the picture's own and press Analyse.
  3. Read the observations, then look at each panel and its note.
  4. Press Cancel if you picked the wrong file; the worker stops and nothing is kept.
  5. Export the PDF report if you need to keep or hand on the findings.
  6. Compare regions against each other, not against a fixed brightness.

Example

Two Kodak test photographs (kodim23 and kodim15), saved as JPEG once and twice with libjpeg-turbo at different qualities

Single saves at qualities 50 to 95 in 4:2:0 and 4:4:4, and double saves with a lower first quality (30 to 75) before a higher second one (60 to 95)

Double-compression score

Single-save files scored at most 16.2 and 14.8 on the two photos; double-save files scored at least 37.7 and 35.8. When the first save was at a higher quality than the second (90 then 75) the score was 12, indistinguishable from a single save. The quality estimate was exact for every libjpeg-turbo quality from 1 to 100 (the tables below quality 50 use integer division, which the page follows), and a mozjpeg file at quality 80 matched none (closest 74, difference 707).

Limits

Error levels are naturally highest on sharp edges and fine texture, and lowest on smooth areas. A bright region proves nothing by itself.

A repeated texture such as a fence, tiles, foliage or feathers matches itself without any editing. The page suppresses clusters of near-identical shifts as repeating texture, but an untouched photo can still report two or three weak shifts, so a shift backed by only a few dozen blocks is a lead, not a finding.

Flat graphics and screenshots give unreliable double-compression results; single-save screenshots can score as high as 52, above double-saved photographs.

  • Set the ELA quality to roughly the file's own estimated quality; a much lower value brightens everything and hides differences.
  • Check the file's own history first: the page lists dates, software and application segments, which often explain a result.

Common errors and how to fix them

The page says it is not a JPEG, PNG or WebP
The type is read from the first bytes, not the file name. Convert the picture or choose a different file.
The analysis worker stops
A picture near 60 megapixels can exhaust memory. Scale it down first; the maps use a copy of at most 2,000 px anyway.

Best practices

  • Work from the earliest copy of the file you can get; each re-save and each upload erases evidence.
  • Keep the PDF report with the file's SHA-256 so it is clear which file was analysed.

Reading the double-compression score

The score is a strength, not a probability. On textured photographs, files saved once score 17 or below and files saved twice with a lower first quality start at about 36, so the page flags 28 and above and shows the number. It also reports the share of blocks that carry texture: below 30% the test is declared unreliable, because flat graphics produce patterns of their own.

The test only sees a first save at a lower quality than the second. A re-save at the same or a lower quality, or a resize between the two saves, leaves no pattern, so a quiet result never means the file is a first-generation original.

What the page cannot see

Copy-move search finds regions copied without rotation or scaling. It also misses a copy that was saved as JPEG again at a shift that is not a multiple of 8 pixels, because the two blocks are then quantised differently. It misses a weakly textured patch (a copied 96 × 96 patch of mostly dark background is not found, while a textured one is found at JPEG qualities 90 and 70). Splicing from a different photo, AI-generated content and clean retouching of skin leave none of the traces searched for here. The metadata checks only read what the file states, and metadata is easy to edit.

Frequently asked questions

Can it tell me if a picture is AI-generated?

No. Nothing here is trained to recognise generated images, and generated pictures usually carry no camera tables or EXIF at all, which also describes many stripped, genuine photos.

What does an exact quality estimate tell me?

That the file's tables are the standard ones at that quality, so a libjpeg-family encoder wrote it. It does not say whether the pixels were edited before saving.

Why did the copy-move search find nothing in a picture I know is edited?

Rotated, scaled, blurred or weakly textured copies are outside what it searches for. Recompressing the file as a JPEG after the paste can also hide a copy, especially when the shift is not a multiple of 8 pixels, because the blocks stop matching within the 5 grey-level tolerance.

Is the SHA-256 in the report a signature?

No. It is a fingerprint of the file you opened, useful for showing that two reports refer to the same bytes. It does not say who made the file or when.

Why does a PNG show no JPEG checks?

Quantisation tables and coefficient histograms exist only inside JPEG data. A PNG carries decoded pixels, so only the pixel maps and the copy-move search apply to it.