Compare image headers and browser file labels
Admin ·
Compare a received file with another copy to see what the browser reports and what the underlying bytes establish. A pair can share dimensions while storing different metadata or appearing under different file labels.
Read the signatures behind the two file labels
Select Load example and Compare metadata. The left file is a PNG. The right example deliberately presents JPEG bytes under the name density-field-card.txt with a text/plain browser label. Signature media type reads image/jpeg on that side.
Check Signature offsets. Both signatures begin at byte 0. Check Stored size. Both files report 3 × 2 px even though their extensions, sizes and signatures differ.
| Property | Left PNG | Right JPEG |
|---|---|---|
| File size | 113 bytes | 793 bytes |
| Browser media type from the example | image/png | text/plain |
| Signature media type | image/png | image/jpeg |
| Stored size | 3 × 2 px | 3 × 2 px |
Download the field card PNGDownload the field card JPEGW3C File API file information and byte readsW3C PNG specification and image metadata chunks
Check what is present on only one side
Image description reads Field card proof on the right and Left missing. For print density, the left pHYs field reads 3780 × 5669 pixels per metre. The right file has a JFIF density of 72 × 96 pixels per inch and an EXIF density of 150 × 180 pixels per inch. The right status reports that these density sources disagree.
Replace the right file with the rotated JPEG sample. Its stored size becomes 180 × 240 px. EXIF orientation 6 gives an orientation-adjusted size of 240 × 180 px. This is a header-based comparison.
CIPA Exif specification and orientation diagramsW3C PNG specification and image metadata chunksDownload the field card JPEGDownload the rotated JPEG
Check the downloaded findings and their evidence
Download metadata-comparison.json. For each property, check the evidence source, the left and right states and the resulting finding. Keep file labels and image tags distinct when documenting what changed.
If a file has a recognized marker but unreadable image fields, the signature can still appear. Treat unavailable fields as unresolved and use the file's read status to decide what needs more inspection.
W3C File API file information and byte readsCIPA Exif specification and orientation diagrams
Common questions
Which time is Last modified?
It is the browser-supplied file modification timestamp shown in UTC. Read Original capture time separately for the selected EXIF date text.
Which print density is correct when two sources disagree?
The report preserves the separate sources. Check which density your receiving application reads before using it to size a print.