FileRevivo / Repair guides

Work on a separate copy; preserve the original file.

Advanced PNG deflate stream salvage

Damaged compressed IDAT data may prevent an otherwise intact PNG from decoding.

Recovery procedure

IDAT chunk boundaries do not correspond to independent compressed blocks. Feed their payloads in order to a bounded decoder; do not assume decoding can restart at the next chunk. For Adam7 images, track pass geometry separately.

How to verify the result

Verify each recovered pass or row against expected geometry and mark missing areas explicitly.

Technical decision example

Suppose an image decoder reaches row 400 of a noninterlaced image and fails on the next compressed region. Preserve the successfully reconstructed rows, together with the decoder warnings. Do not concatenate later IDAT bytes as a fresh stream unless their independently verified structure permits it. PNG filters can depend on prior reconstructed samples, so recovering compressed bytes alone may not recover the associated pixels.

Recovery limits

A broken deflate stream may prevent recovery of all following rows.

FileRevivo: supported inspection and recovery options. Check tool limitations before use.

Technical references