FileRevivo / Repair guides

Work on a separate copy; preserve the original file.

Memory-bounded PSB channel salvage

A large file may fail because of memory pressure rather than corruption.

Recovery procedure

Estimate uncompressed memory from channel dimensions and sample depth before decoding. Process channels incrementally where the compression format permits it, and cap allocations. Large dimensions do not imply that every tile can be decompressed independently.

How to verify the result

Compare independently decoded samples at multiple positions; retain original bit depth in the intermediate output.

Technical decision example

A hypothetical 30,000 × 30,000 pixel, four-channel image at 16 bits per sample needs about 7.2 GB just for uncompressed sample storage. Layer data, temporary buffers and application overhead can increase that significantly. A failed allocation in this situation is not by itself evidence of corrupt bytes.

Recovery limits

Not all compression modes permit arbitrary tile access.

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

Technical references