Image guides

Read a JPEG recompression heatmap with measured pixel differences

·

A JPEG save can move color values at edges and across fine texture. The viewer isolates the changes caused by one new JPEG encode, sometimes called error level analysis.

Image Compression Difference Viewer

Compare the 12,288 pixels in the example

Click Load example to open patterned-sample.png. Keep JPEG quality at 85 and Difference threshold at 16, then choose Measure JPEG differences. The result compares all 12,288 pixels in the 128 × 96 image.

Inspect the reference beside its recompressed JPEG and red heatmap. Bright traces can occur around high-contrast details, fine patterns and changes in texture, including in a newly created sample.

ITU-T T.81 JPEG coding specificationWHATWG HTML bitmap serialization

Read the three reported numbers

The difference at each pixel is the largest absolute change across its red, green and blue channels. Red brightness in the heatmap is four times that difference, capped at 255.

The mean averages these per-pixel differences. The maximum is the largest observed difference. Pixels at or above the threshold counts the pixels meeting the boundary and reports their share.

ITU-T T.81 JPEG coding specification

Reopen the exact images used by the measurement

Download the reference PNG, recompressed JPEG, heatmap and JSON report. For a transparent PNG, the reference is the original decoded image composited onto white before encoding.

To check the numbers, measure the maximum channel difference per pixel between the saved reference and decoded JPEG. Re-run at 95 to observe how a different encode changes the measurements.

W3C Portable Network Graphics Third EditionITU-T T.81 JPEG coding specificationWHATWG HTML bitmap serialization

Common questions

Does a red area establish how a photo was edited?

The map records differences between two decoded images. Local texture and a fresh JPEG encode alone can cause bright areas. File history requires independent evidence.

Why is my transparent PNG white in the reference?

The reference records the white composite used as the JPEG encoder input. This makes the compared images use the same opaque background.

Sources

Put it into practice.

Related guides