Image inspection guides

Identify a JPEG that arrived with a PNG name

·

A filename can keep an old extension when an image is copied or renamed. The format report lets you compare the filename with the observed bytes and the fields each format stores.

Image Format Detector

Compare a JPEG signature with a .png extension

Select Load mislabeled JPEG. The filename renamed-field-card.png has a .png extension, but the report finds JPEG at byte offset 0. Its start-of-image marker is FF D8 and the detected type is image/jpeg.

The same result shows 3 × 2 pixels, 8 bits per sample, three color components and one still frame. Download report to keep the evidence and the original filename together.

JPEG File Interchange Format version 1.02W3C PNG specification third edition

Read QOI dimensions and its declared channels

Select Load QOI example. The two-pixel sample begins 71 6F 69 66, the ASCII letters qoif. The header records 2 × 1 pixels and four channels, so the report shows RGBA and a declared alpha channel.

The channel flag describes the file’s recorded layout. A pixel decoder can measure transparency within that layout. A WebP or PNG can describe transparency through different container fields.

Quite OK Image Format specificationGoogle WebP container specificationW3C PNG specification third edition

Interpret a report with fewer fields

A JPEG XL file may show a signature and leave dimensions, depth or alpha unavailable. A Photoshop header can establish the declared dimensions, depth and channel count. Extra Photoshop channels may carry transparency or other channel data.

A short file can have recognizable opening bytes and missing image data. Treat any structure warning as a reason to reopen the file with the application that produced the original.

libjxl JPEG XL format and codestream overviewAdobe Photoshop file formats specification

Common questions

Can changing a suffix convert the image?

Changing the suffix changes the name. To produce a different encoded format, use a converter and check the signature of its download.

Why can a PNG and APNG share an extension?

Animated PNG uses the PNG container and adds animation chunks. The checker looks for those chunks and accepts .png or .apng for the resulting APNG type.

Sources

Put it into practice.

Related guides