Original Data
Image Compression Quality Benchmark
This DualView benchmark compares local image variants against the same reference test pattern. It reports file size, mean squared error, PSNR, and a transparent global luminance SSIM-style approximation so the results are reproducible and useful for visual quality discussions.
Quick Answer
In this local benchmark, higher JPEG quality preserves more pixel fidelity than lower JPEG quality, while blur, noise, brightness, and contrast changes show why a single metric is not enough. PSNR is useful for pixel error, but visual review and SSIM-style structure checks are still needed for real image comparison decisions.
Benchmark Results
| Variant | File size KB | PSNR dB | SSIM approx. | MSE |
|---|---|---|---|---|
| JPEG quality 95 | 182.1 | 48.59 | 1 | 0.9 |
| JPEG quality 60 | 64.89 | 36.11 | 0.9993 | 15.92 |
| JPEG quality 30 | 45.28 | 33.2 | 0.9987 | 31.09 |
| Blurred PNG | 398.25 | 28.94 | 0.9969 | 83.02 |
| Noisy PNG | 3875.42 | 26.52 | 0.9938 | 144.96 |
| Sharpened PNG | 274.91 | 33.8 | 0.9983 | 27.12 |
| Brightened PNG | 215.47 | 21.58 | 0.9862 | 452.21 |
| High-contrast PNG | 224.97 | 26.91 | 0.9992 | 132.39 |
Methodology
The benchmark uses test-assets/image/original/test-pattern.png as the reference image and compares committed variants in test-assets/image/variations/. Each file is decoded with Sharp, converted to RGB pixels, resized to the reference dimensions when needed, and compared channel-by-channel. PSNR is computed from mean squared error across RGB channels. The SSIM-style value is a global luminance approximation, not a windowed full SSIM implementation.
Limitation: this page is a transparent benchmark for DualView's own test assets. It should not be treated as a universal ranking of formats, encoders, or image-processing methods.
How To Use These Numbers
Use PSNR to spot large pixel-error differences, use the SSIM-style value to understand broad structural similarity, and use visual inspection to catch artifacts that metrics can hide. For production decisions, compare your own source files in DualView quality metrics and inspect the visible image, not only the score.