Compare a 1-Bit Palette PNG and a 16-Bit RGBA PNG
Admin ·
Use the stored precision to check an image export. Then use the browser's decoded sample to check what a viewer can actually display.
Compare a 1-bit indexed PNG with a 16-bit RGBA PNG
Load the indexed proof example. Its IHDR reports one bit per palette index and its PLTE lists two colors. The palette entries use 8-bit red, green and blue components.
Open the 16-bit RGBA sample. Its header reports four 16-bit samples, which total 64 bits per pixel. Samples that only differ in their least significant bits can appear identical in the browser's RGBA8 sample.
W3C PNG 3 image header and chunksTwo-color indexed PNG sample16-bit RGBA PNG sample
Check the scope of the color declaration
Use Color profile evidence to find an ICC carrier, an explicit sRGB declaration or a coded primaries and transfer value. The declaration describes the file's encoding.
A missing entry means the reader found no supported declaration. Record the precise file and format before deciding which color assumptions to apply.
W3C PNG 3 image header and chunksGoogle WebP RIFF container specification
Common questions
Why can a 16-bit image show only a few decoded colors?
Precision describes the stored components. The decoded sample counts distinct values in an RGBA8 raster from the browser.