Image Compression Deep Dive: Quality, Artefacts & Pipelines
How lossy and lossless compression work, what artefacts look like, choosing quality settings, and building a sane resize/compress pipeline for web and product media.
The goal: smallest file, acceptable perception
Lossless compression: no pixels harmed
Lossy compression: what actually gets thrown away
SSIM, butteraugli, and why your eyes beat metrics
Pipeline order: crop → resize → encode
Table: encoder knobs and what they trade
CDN and adaptive delivery
MagicConverters in the pipeline
Frequently asked questions
What quality setting should I use for WebP/JPEG on the web?
A common starting point is WebP quality 75–85 or JPEG 75–85. Always validate on real art direction — flat illustrations tolerate lower quality; photos with skin tones may need higher settings.
Why do compressed images look blurry around text?
Lossy codecs optimise for natural images; high-contrast edges (text, line art) show ringing. Use PNG/WebP lossless or SVG for those assets.
Is resizing the same as compressing?
No. Resizing changes pixel dimensions; compression changes how those pixels are encoded. Doing both in the correct order (resize first, then compress) usually yields cleaner results.
Can I compress without losing metadata?
Sometimes. Stripping EXIF reduces bytes and privacy risk but removes camera info. Keep metadata when rights management requires it.
Does double compression matter?
Yes. Social platforms and CDNs often recompress uploads. Upload the highest quality allowed if you care about final appearance.
What is chroma subsampling?
JPEG often stores colour at lower resolution than brightness because eyes are less sensitive to colour detail — it saves space with minimal perceived loss for photos.
Related Articles
Best Image Formats for Web: WebP vs PNG vs JPEG
A comprehensive comparison of modern image formats and when to use each one.
GuideBest Ways to Convert JPG to PNG Without Quality Loss
Learn why and how to convert JPEG images to PNG format while preserving maximum visual quality, plus when it actually makes sense.
Pillar guideUltimate Guide to Image Formats (Web, Print & Archives)
JPEG vs PNG vs WebP vs AVIF vs SVG — when to use each, how they affect quality and file size, and how to convert safely between formats.