PNG CRC repair versus pixel recovery
A CRC mismatch identifies a chunk integrity problem but does not identify the correct original bytes.
Recovery procedure
A CRC covers chunk type and payload, not the length field. Recomputing it after a bit flip can make a damaged chunk appear consistent without recovering its contents. Repair only after establishing a trustworthy payload or clearly labeling a replacement.
How to verify the result
Decode the image and compare against a known source; distinguish checksum consistency from pixel fidelity.
Technical decision example
If the CRC of a text metadata chunk is wrong, a viewer may still decode the image. If the CRC of IDAT is wrong, the compressed data may be affected. In either case, a freshly calculated CRC validates the new representation, not the original payload. Keep the pre-repair checksum and any replacement provenance.
Recovery limits
A matching recalculated CRC proves consistency, not authenticity.
FileRevivo: supported inspection and recovery options. Check tool limitations before use.
Measured checksum-only test
A generated 16 × 12 PNG was damaged by changing one byte in its IHDR checksum, leaving the image data unchanged. FileRevivo’s bundled worker reported one checksum mismatch, decoded the repaired candidate and returned bytes identical to the undamaged reference. This narrow result cannot be generalized to damaged IDAT data. If compressed pixels have been changed, recalculating a CRC is not restoration.