Forensic repair report

JAR - JPEG Auto Repair build 254 (Pro license). Report made 2026-11-19 17:12:21.

Files

FileSize (bytes)SHA-256MD5
OriginalC:\JPEG Related\sample repair patch\SAM_1876.JPG36275417583a328210177e40a643aad629ed0ed2619fb7aebbd821b7e3d1404dce7b814321a051a23afb12b18b197c42af998a9
RepairedC:\JPEG Related\sample repair patch\SAM_1876_auto-5.JPG357581499abc5009d6e23963abf8d900b26bd9cae31b65905b6596ed6b5e6323bb1ad72a007e903fb6996741325aa19b9def781

The original is only read, never written. Unchanged after the repair: yes (the same hashes before and after the repair).

Settings

Forensic mode. Reference header: none (the file's own). Contrast: not changed. Smoothing: off. Inserted MCUs: filled from the row above. Crop the missing end: on.

Plan: automatic (7 operation(s)).

Picture: 4608 x 3456 pixels, 288 x 432 MCUs of 16 x 8 pixels (124416 MCUs).

1. Bytes removed or not used before decoding

#Offset in the originalBytesWhat
11440768 (0x0015FC00)6144data of another file
21637376 (0x0018FC00)2048data of another file
31674240 (0x00198C00)2048data of another file
41735680 (0x001A7C00)2048data of another file
51936384 (0x001D8C00)4096data of another file
63574784 (0x00368C00)2048data of another file

Clean-up: Pre-step: 6 foreign data block(s) removed (18432 bytes), 1 invalid marker(s) neutralised.

2. Operations on the decoded data

No pixel is re-compressed. The quantized DCT coefficients are moved, deleted or copied as they are and Huffman-coded again (jpegrepair writes the standard Huffman tables of the JPEG standard; the quantization tables are kept). A DC correction adds a constant to the DC coefficient (the mean brightness or colour of a block) of every MCU from that point on. Positions are in the repaired photo.

#MCURow, columnPixel y, xOperation
159228205, 1881640, 3008deleted 1 MCU(s) of garbage, decoded from about bytes 1440590-1440625 of the original; inserted 176 MCU(s), filled from the row above; DC correction from here on: Y +125, Cb +26, Cr +37
265077225, 2771800, 4432inserted 54 MCU(s), filled from the row above; DC correction from here on: Y +271, Cb -35, Cr +22
366203229, 2511832, 4016deleted 3 MCU(s) of garbage, decoded from about bytes 1674208-1676348 of the original; inserted 62 MCU(s), filled from the row above; DC correction from here on: Y -50, Cb +25, Cr +126
468092236, 1241888, 1984deleted 2 MCU(s) of garbage, decoded from about bytes 1735509-1735582 of the original; inserted 77 MCU(s), filled from the row above; DC correction from here on: Y +187, Cb +87, Cr +188
574455258, 1512064, 2416deleted 3 MCU(s) of garbage, decoded from about bytes 1940735-1940822 of the original; inserted 146 MCU(s), filled from the row above; DC correction from here on: Y +124, Cb -212, Cr +48
690678314, 2462512, 3936deleted 208 MCU(s) of garbage, decoded from about bytes 2433916-2439835 of the original; inserted 170 MCU(s), filled from the row above; DC correction from here on: Y +2444, Cb +132, Cr +337
7124378431, 2503448, 4000inserted 38 MCU(s), filled from the row above

3. Result per MCU

MCUsCountShare
original, in place, unchanged5922847.6%
original, moved00.0%
original, DC (brightness/colour) corrected6446551.8%
filled (no source in the original; red below)7230.6%

 

repaired photo

4. Verification

The repaired file was decoded again and compared with the decoded original, block by block (8 x 8 pixels, every component, inside the picture).

Blocks in the repaired photo497664
Blocks whose AC coefficients (all but the mean) occur in the original497664

No block content was made up: every block is a block of the original, moved or copied (the filled MCUs are copies of other MCUs of the photo). Only the DC (mean brightness or colour) was changed, by the corrections listed in 2.

Kept blocks. Every block of the original that is still in the repair (not deleted, not pushed past the end), in reading order, against every block of the repair that is not inserted or filled, in reading order, with the DC corrections of section 2 undone. All 64 coefficients of every block, SHA-256 over all of them:

Kept blocks494772
SHA-256, original546f043b3458e9f29fce7bcf88942cdf32367a84ec158b89f56ebebaff151f1f
SHA-256, repair546f043b3458e9f29fce7bcf88942cdf32367a84ec158b89f56ebebaff151f1f

Identical: every kept block is exactly the block of the original, in the same order; nothing changed but the DC corrections listed.

How to repeat both checks without JAR: see Help > Forensic mode.