Image inspection guides

Inspect a PNG that looks right but changed on disk

·

When an image arrives incomplete or differs from a reference copy, check three things. Read how its file container ends, see whether the browser can decode the pixels within the supported scope, and compare a byte digest against a trusted reference.

Image Integrity Checker

Compare three copies of the dispatch card

Select Load integrity examples. The original dispatch-card.png is 806 bytes and decodes at 320 × 180 pixels. Its chunk checksums match and its IEND chunk has no bytes after it.

The second copy omits the last four bytes of the IEND chunk. It keeps the same signature but triggers a structure issue and skips pixel decoding. The third copy adds three bytes after IEND. Its original chunk checksums remain valid and the report lists three trailing bytes.

Compare three copies of the dispatch card
FileFile sizeStructure observation
dispatch-card.png806 bytesStructure read, 0 trailing bytes
dispatch-card-truncated.png802 bytesIncomplete PNG end chunk
dispatch-card-trailing.png809 bytesStructure read, 3 trailing bytes

W3C PNG specification for chunks, CRC and IENDDownload the intact dispatch PNG example

Use the right evidence to check a reference copy

A viewer may ignore extra bytes after an image's declared end. Two viewers can display the same pixels while the underlying files differ. In the example, the original PNG and the copy with trailing bytes have different SHA-256 values.

Select Download report and find sha256 for the selected file. Compare the entire value with a trusted digest for the exact reference copy. The chunk CRC checks catch changes within the covered PNG chunks. SHA-256 covers the complete byte stream, including any suffix beyond the image.

W3C PNG specification for chunks, CRC and IENDNIST Secure Hash Standard

Interpret unavailable and limited checks

A Structure issue message means a supported file could not pass the indicated check. Structure check unavailable can mean the format or size falls outside this checker. Try a viewer that supports that format or reopen the original from your source.

The browser check covers the first GIF frame and can report the canvas of animated PNG or WebP without decoding the animation. Treat those as limited observations. A matching structure and decoded size establish which checks succeeded on the selected copy.

HTML Standard for createImageBitmapGoogle WebP RIFF container specificationW3C PNG specification for chunks, CRC and IEND

Common questions

Can a damaged file still have the correct extension and signature?

Yes. The truncated example has the PNG signature and a .png extension. The checker finds the missing end bytes by reading the chunk boundaries.

Can the report prove that a photo is authentic?

The report records container, decoding and byte-digest observations. Authenticity depends on provenance, such as a verified source copy or signed evidence.

Sources and samples

Put it into practice.

Related guides