What is Lossy Compression?
Lossy compression reduces file size by irreversibly discarding information considered less important to perceived quality. Decompression produces an approximation rather than the exact original data.
How Lossy Compression works
A lossy encoder transforms media into a perceptually useful representation, quantizes less important detail, and codes the remaining signal efficiently. Rate control decides how that irreversible error is distributed over time, frequency, color components, or spatial regions. Different codecs and presets can produce unlike artifacts at the same nominal bitrate, so validation must use the actual content and viewing conditions. Pipelines normally preserve a high-quality source and create delivery derivatives without chaining one derivative through another.
Key facts
- 1Generational loss occurs when decoded output is quantized again; matching the previous quality setting cannot recover coefficients or samples discarded earlier.
- 2Bitrate and quality scales are not directly comparable across codecs or encoders, because prediction tools, psychovisual decisions, and rate-control behavior differ.
- 3Remuxing copies compressed packets into another container without adding coding loss, provided the tracks are not decoded, filtered, or re-encoded during the operation.
When Lossy Compression matters
Use lossy coding when bandwidth or storage savings justify some loss of image, audio, or video fidelity. Excessive settings or repeated recompression can create visible or audible artifacts.
Common use cases for file formats & compression
These examples cover file formats & compression broadly, not specifically Lossy Compression.
- Accepting heterogeneous uploads while producing a controlled set of delivery formats.
- Moving assets between cameras, editors, browsers, archives, and downstream APIs.
- Separating long-lived source files from compact derivatives optimized for a particular channel.
Working with file formats & compression
This guidance covers file formats & compression broadly, not just Lossy Compression.
A parser reads the file structure, identifies contained streams and metadata, and exposes them to a decoder or application. Conversion usually decodes the source representation and writes compatible information into a different structure or encoding.
This category covers file and bitstream formats, their structures, and the compression methods they use. A filename extension can be misleading, so evaluate the detected format, decoding support, metadata, transparency, color, timing, patents, and archival needs before choosing an output.
What you gain
- A suitable format preserves the properties a workflow actually needs.
- Standardized structures allow files to move between compatible tools and systems.
- Format conversion can improve delivery size, editability, or long-term accessibility.
What it costs
- Modern formats can save bandwidth but may need fallbacks for older clients and production tools.
- Converting to a simpler format can discard transparency, animation, metadata, color precision, or editability.
- Archival suitability, browser support, and editing support often favor different choices.
Before production
- 1Inspect the detected container, codec, MIME type, and magic bytes instead of trusting a suffix.
- 2Verify decoder support and preserve metadata, color, transparency, or timing when required.
- 3Retain the source when the chosen delivery format is lossy or tied to current software.