Image guides

Compress exact pixels to PNG or WebP

·

An exact encode changes how the decoded pixels are stored. Try both output formats and compare their real file sizes before changing your project.

Lossless Image Compressor

Save the four-color example as an indexed PNG

Select Load example. Leave Output format on PNG and keep Use exact palette when smaller selected. Compress the 96 × 48 sample. The result uses four palette entries and goes from 233 to 141 bytes.

The red, teal, blue and gold samples use different alpha values. The palette retains every RGBA value, including blue RGB behind fully transparent pixels.

W3C PNG Third Edition, palette and transparency chunks

Compare the lossless WebP output

Choose Lossless WebP and compress the same source again. The sample produces an 84-byte VP8L file. The encoder’s result is reopened and checked against every decoded source sample.

A source with more than 256 distinct RGBA values requires full-color PNG or another lossless representation. The tool skips the palette in that case.

Compare the lossless WebP output
FormatSample sizeSamples
Source PNG233 bytes96 × 48 RGBA
Exact palette PNG141 bytesSame decoded RGBA
Lossless WebP84 bytesSame decoded RGBA

W3C PNG Third Edition, palette and transparency chunksGoogle WebP lossless bitstream specification

Read the byte count and save the batch

Check the method and byte count for each file. A chosen conversion can produce a larger file, especially for a previously lossy JPEG. PNG or VP8L already smaller than a same-format encode can be returned byte-for-byte.

Choose Download lossless ZIP for the successful outputs and the JSON report. GIF and multipage TIFF outputs use the first frame or page, which the result identifies.

Google WebP lossless bitstream specificationW3C PNG Third Edition, palette and transparency chunks

Common questions

Does a palette approximate colors here?

The exact palette assigns a separate entry to each original RGBA tuple. It does not merge colors or alter opacity.

Can the tool recover detail removed by JPEG?

The lossless result preserves the pixels decoded from the JPEG, including any artifacts already present.

Sources

Put it into practice.

Related guides