What can we help you find?

LEARNING CENTER · Research

Image compression benchmarks: inspect the real files.

Compare four PNG modes and WebP/AVIF exports with original fixtures, exact file bytes, decoded-pixel checks and a transparent reproduction method.

Piko comparing an orange flower on transparent and photographic image backgrounds

A product photo, an interface screenshot, a transparent mark and a smooth gradient give encoders different problems. We measured actual outputs from PikoZip worker functions, kept dimensions constant and published the source files so you can inspect the tradeoffs.

What was tested

Four non-private PNG fixtures were processed with Smart, Balanced, Lossless and Palette modes. We also encoded each source to WebP and AVIF at setting 85. No source was resized for these comparisons.

Read bytes and appearance together

A smaller export is not sufficient evidence of equal image quality. Inspect the files at the size you will use them. Lossless refers to the decoded RGBA comparison in this harness, not unchanged file bytes or archival metadata preservation.

ORIGINAL FILES. MEASURED OUTPUTS.

Four images. Several useful answers.

Inspect each source and its output. These fixtures illustrate different tradeoffs; they are not a universal saving or visual-quality guarantee.

Product photo compression test source
Product photo1536 × 1024 · 2.40 MBDownload original PNG
Interface screenshot compression test source
Interface screenshot1280 × 800 · 2.93 MBDownload original PNG
Transparent mark compression test source
Transparent mark1200 × 800 · 14.5 KBDownload original PNG
Smooth gradient compression test source
Smooth gradient1600 × 900 · 6.7 KBDownload original PNG

PNG mode results at unchanged dimensions

All values are exact bytes. A retained original is shown when a PNG export would have been larger. “Exact RGBA” checks decoded pixels in this harness; metadata and archival color handling are separate concerns.

16 measured PNG outputs
SourceModeInput bytesOutput bytesExact RGBAOutput
Product photoSmart2,515,538620,380NoPNG
Product photoBalanced2,515,5381,575,045NoPNG
Product photoLossless2,515,5382,464,503YesPNG
Product photoPalette2,515,538636,603NoPNG
Interface screenshotSmart3,073,86010,869NoPNG
Interface screenshotBalanced3,073,86012,284NoPNG
Interface screenshotLossless3,073,86023,462YesPNG
Interface screenshotPalette3,073,86012,611NoPNG
Transparent markSmart14,7995,551NoPNG
Transparent markBalanced14,7995,807NoPNG
Transparent markLossless14,79912,842YesPNG
Transparent markPalette14,7995,747NoPNG
Smooth gradientOriginal retainedSmart6,8616,861YesPNG
Smooth gradientOriginal retainedBalanced6,8616,861YesPNG
Smooth gradientOriginal retainedLossless6,8616,861YesPNG
Smooth gradientOriginal retainedPalette6,8616,861YesPNG

WebP and AVIF: compare the actual output

The same source pixels and dimensions were encoded at setting 85 in both codecs. That number is not equal visual quality across formats. Download the images and review text, gradients and edges. Timing is the median of three pipeline runs on a shared Linux Node runner; phones and browsers can differ substantially.

Eight same-dimension format exports
SourceFormatOutput bytesMedian pipeline timeOutput
Product photoWEBP271,130500 msWEBP
Product photoAVIF339,3561,546 msAVIF
Interface screenshotWEBP30,164165 msWEBP
Interface screenshotAVIF8,8752,029 msAVIF
Transparent markWEBP9,776133 msWEBP
Transparent markAVIF7,403288 msAVIF
Smooth gradientWEBP11,916244 msWEBP
Smooth gradientAVIF5,488641 msAVIF

How to interpret these results

We used actual PikoZip worker functions and pinned WebAssembly codecs in a Node harness, with UPNG-decoded RGBA and unchanged dimensions. The browser’s decode/color pipeline can differ. PNG Lossless outputs matched the reference decoded pixels. This is an engineering check, not proof of perceptual equivalence, and is not a TinyPNG comparison.

One original was already compact: all four PNG modes kept the 6,861-byte gradient source. The uncompressed screenshot has unusually large room for reduction, so its saving must not be presented as typical of all screenshots.

Download full measurements and SHA-256 source hashes · Download originals and results ZIP (11.2 MiB)

Reproduce with node scripts/publish-compression-evidence.mjs in the matching source checkout. The measurements were recorded on 11 November 2026; exact timings can vary between runs.

Further reading: Google’s image performance guide and the WebP format documentation.

Put the guide into practice.

Start with one representative image, inspect the result, then prepare the rest of the batch.

Open the compressor
KEEP LEARNING

A useful next read.

MAKE A LITTLE ROOM

Your next image, a little lighter.

Choose your format. Find your balance. Take it with you.

Start optimizing