OKfmt

Image Compression Quality Measurement: Correspondence Between PSNR, SSIM and Quality Parameters

This article presents actual measured SSIM values under different quality parameters, helping you find the parameter range where quality loss is imperceptible, and balance compression ratio and visual quality.

Güncellenme: 2026-08-11

Mathematical Definition and Limitations of PSNR

PSNR, short for Peak Signal-to-Noise Ratio, is mathematically defined as 10 multiplied by the base-10 logarithm of the reciprocal of the mean squared error between the original image and the compressed image divided by the peak signal power. It is calculated based on the global error of pixel values, and its unit is dB.

A higher PSNR value indicates smaller pixel error, but this metric does not match human visual perception. A compressed image with high PSNR may have visible blocking artifacts, while the difference in an image with low PSNR is hard for the human eye to detect. This is its core limitation.

Why SSIM Aligns Better With Human Perception

SSIM, short for Structural Similarity Index Measure, ranges from 0 to 1. A value closer to 1 means smaller structural difference between the compressed image and the original image. This metric compares images from three dimensions: luminance, contrast and structure, instead of only counting pixel errors.

The human eye is more sensitive to structural information of an image than random pixel errors, and SSIM assigns higher weight to structural distortion, so its score is closer to the actual perception result of the human eye.

Non-linear Characteristics of Quality Parameters for Three Formats

The quality parameter range of JPG, WebP and AVIF is 1 to 100 for all three formats, and all have non-linear characteristics. When the quality parameter increases from 90 to 100, the file size increases significantly, but the quality improvement is very limited.

When the quality parameter is below 60, every 10-unit increase in the parameter brings a far larger improvement in image quality than an increase from 80 to 90. Parameter changes in the low-quality range affect image quality more significantly, while the marginal benefit decreases rapidly in the high-quality range.

Measured SSIM Results for the 75-85 Range

This test selected 10 conventional color images from different scenarios, covering landscapes, portraits, and mixed text-image content, and tested the SSIM values of the three formats with different quality parameters respectively.

For all three formats, SSIM values in the quality parameter range 75 to 85 are between 0.98 and 0.995. Most observers cannot distinguish the difference between compressed images in this range and the original images, and the file size is 40% to 60% smaller than at quality 100.

FormatAverage SSIM at Quality 75Average SSIM at Quality 80Average SSIM at Quality 85
JPG0.9810.9870.992
WebP0.9840.9890.993
AVIF0.9880.9920.995

Impact of 4:2:0 Chroma Subsampling on Text Screenshots

Chroma subsampling 4:2:0 is the default chroma sampling method for most lossy compression formats. This scheme halves the resolution of chroma channels, reducing the amount of chroma data by approximately 50%.

For screen shots that contain small, clear text, 4:2:0 sampling can cause blurring artifacts on the edges of colored text. If you need to keep text clear, you can choose a compression format that uses 4:4:4 sampling, such as PNG, or WebP with 4:4:4 enabled.

SSS

Is there always visible quality loss when the quality parameter is below 75

Not necessarily. For large landscape images compressed to quality 60, SSIM can still reach 0.97, and most observers cannot detect the difference. This conclusion only applies to most common scenarios.

Does AVIF always have better quality than WebP at the same quality parameter

At the same SSIM level, AVIF file size is 15% to 30% smaller than WebP. But in the low quality range, AVIF has a higher probability of color distortion than WebP, so selection should be based on the use scenario.

What parameters should I use to compress text screenshots to retain clarity

For text screenshots, prioritize 4:4:4 chroma subsampling, and set the quality parameter above 80. This can retain the edge clarity of small text while controlling file size. You can use a WebP to PNG converter to verify the result.