Skip to content

How can I verify that a received PNG is complete rather than truncated?

A complete PNG should decode successfully and contain the expected image, dimensions and full byte sequence. If a trusted expected checksum is available, compare it locally; matching width and height alone cannot rule out a truncated file.

IMAGE PREVIEWS AND ORIGINAL DOWNLOADSAISwapLab team · Editorial methodUpdated 3 min read
Open image character swapExplore 67 Image Skills4.44 free welcome credits · No subscription
Article workflow: Inspect the relevant input or record; Apply the specific correction; Verify the actual outcome.
Workflow diagram: Inspect the relevant input or record → Apply the specific correction → Verify the actual outcome. Read the article for evidence and limits.

Separate generation, preview and file delivery

A partial download may contain a valid-looking header but lack the remaining image data. Visual loading, file length and integrity checks answer different parts of the completeness question.

What to do next

  1. 01

    Inspect the relevant input or record

    Check that the browser no longer marks the file as pending and that the destination is an ordinary image rather than a partial-download file.

  2. 02

    Apply the specific correction

    Open the image in a trusted viewer and inspect its full extent. Record dimensions and file size; report decoding failures or blank lower regions as possible incomplete delivery.

  3. 03

    Verify the actual outcome

    For a known test artifact, compute a local checksum and compare it with the recorded value. Keep private media on the device rather than sending it to a public verification service.

Published evidence

Published evidence: test: the original PNG contained 3,692,614 bytes, decoded at 1536 × 1024 and matched its recorded SHA-256 checksum. A separate read test survived a 65-second downstream pause.

Use a checksum only when the comparison value is trustworthy

A locally computed hash is useful for comparing two known copies, but a hash with nothing to compare against does not certify completeness. Likewise, identical hashes of two already-truncated files establish equality between those files, not that either is the full original. Combine any trusted expected checksum with successful decoding and inspection of the entire image.

If no expected digest exists, open the file in a trusted local viewer, inspect the full frame and preserve the transfer error or file length for support. A visibly complete image still deserves separate content-quality review; a valid PNG can contain an unwanted generated scene. Accept the download as the intended artifact when the available delivery evidence supports that identity and integrity. Do not compare a customer's file with the published QA image's byte count, because that number belongs to a different, specifically recorded output.

Before you call it ready

  • Check that the browser no longer marks the file as pending and that the destination is an ordinary image rather than a partial-download file..
  • Open the image in a trusted viewer and inspect its full extent.
  • For a known test artifact, compute a local checksum and compare it with the recorded value.

When to stop or choose another method

Do not claim every user's download has this size or checksum. Those values identify one recorded QA image, not a required format or universal output length.

Sources

Your photo. A deliberate replacement.

Choose the original people, review each replacement and inspect the actual image.

Open image character swap