Key Characteristics of Lossy Compression Algorithms

Lossy Compression is a data compression technique that reduces file size by permanently discarding non-essential or perceptually irrelevant data (e.g., visual details the human eye cannot detect, audio frequencies the human ear cannot hear). It prioritizes smaller file sizes over perfect data fidelity, making it ideal for media files (images, audio, video) where minor quality loss is unnoticeable to end-users.

Core Working Principle

Lossy compression leverages psychovisual/psychoacoustic models—scientific understanding of how humans perceive sight and sound—to eliminate redundant or imperceptible data:

  1. Data Analysis: The algorithm scans the original file to identify data that contributes little to human perception (e.g., fine texture in a digital image, high-frequency audio tones).
  2. Irrelevant Data Removal: Non-essential data is discarded (e.g., merging similar colors in an image, removing quiet background sounds in audio).
  3. Encoding: The remaining data is encoded using efficient compression algorithms (e.g., discrete cosine transform for JPEG, modified discrete cosine transform for MP3) to further reduce size.
  4. Decoding: When the file is opened, the decoder reconstructs an approximation of the original data using the retained information—but the discarded data cannot be recovered.

Key Characteristics of Lossy Compression:

  • Irreversible: Discarded data is permanently lost; the decompressed file is not identical to the original (unlike lossless compression).
  • Variable Compression Ratio: Users can adjust the compression level (e.g., “quality” slider in JPEG) to balance file size and quality (higher compression = smaller file = more quality loss).
  • Perceptual Transparency: At moderate compression levels, the difference between the original and compressed file is undetectable to most users.

Common Lossy Compression Algorithms & File Formats

1. Image Compression

Format/AlgorithmUse CaseHow It Works
JPEG (Joint Photographic Experts Group)Digital photos, web imagesBreaks images into 8×8 pixel blocks; uses discrete cosine transform (DCT) to convert spatial data to frequency data; discards high-frequency details (fine textures) that the eye ignores.
WebP (Lossy)Web images (smaller than JPEG)Combines DCT with predictive coding; achieves 25–35% smaller file sizes than JPEG at the same visual quality.
HEIC/HEIF (High Efficiency Image Format)Mobile photos (iPhone/Android)Uses advanced compression (H.265/HEVC video codec) to reduce file size by 50% compared to JPEG with no visible quality loss.

2. Audio Compression

Format/AlgorithmUse CaseHow It Works
MP3 (MPEG-1 Audio Layer 3)Music streaming/downloadsUses psychoacoustic modeling to remove frequencies outside human hearing range (20Hz–20kHz) and mask quiet sounds under louder ones; compresses audio to 1/10th of its original size.
AAC (Advanced Audio Coding)Streaming (Spotify, Apple Music), mobile audioImproved version of MP3; supports higher bitrates and better quality at the same file size; used in M4A files and YouTube audio.
OGG VorbisOpen-source audio streamingSimilar to MP3/AAC but royalty-free; offers better quality than MP3 at low bitrates (e.g., 64kbps for podcasts).

3. Video Compression

Format/AlgorithmUse CaseHow It Works
H.264/AVCYouTube, Blu-ray, streamingCompresses video by removing temporal redundancy (repeating frames) and spatial redundancy (fine details); achieves high compression with good quality.
H.265/HEVC4K/8K video, streaming (Netflix)Doubles compression efficiency of H.264; reduces file size by 50% at the same quality, critical for high-resolution video.
AV1Open-source 4K/8K streamingDeveloped by Google/Mozilla; royalty-free and 30% more efficient than HEVC; used in YouTube, Twitch, and Amazon Prime.

Advantages of Lossy Compression

  1. Significant File Size Reduction: Reduces media file sizes by 50–90%, enabling faster transmission over the internet (e.g., web images, streaming video) and saving storage space (e.g., thousands of photos on a smartphone).
  2. Optimized for Human Perception: Eliminates only data that users do not notice, preserving “perceptual quality” while minimizing size.
  3. Broad Compatibility: Supported by all modern devices (phones, computers, TVs) and platforms (web, social media, streaming services).
  4. Scalable Quality: Users can choose compression levels (e.g., “high” vs. “low” quality) to match use cases (e.g., low-quality for web previews, high-quality for printing).

Limitations of Lossy Compression

  1. Permanent Quality Loss: Repeated compression/decompression (e.g., saving a JPEG multiple times) causes cumulative quality degradation (“generation loss”), as more data is discarded each time.
  2. Unsuitable for Critical Data: Cannot be used for text files, source code, or scientific data—where even minor data loss would render the file useless.
  3. Noticeable Artifacts at High Compression: Over-compression leads to visible/audio artifacts:
    • Images: Blockiness (JPEG artifacts), blurriness, loss of fine details.
    • Audio: Distortion, “muffled” sound, loss of high-frequency tones (e.g., cymbals in music).
    • Video: Pixelation, motion blur, or blocky backgrounds in fast-moving scenes.
  4. No Perfect Reconstruction: The decompressed file is always an approximation of the original—unlike lossless compression, which restores the original data exactly.

Lossy vs. Lossless Compression

FeatureLossy CompressionLossless Compression
Data FidelityApproximates original (permanent data loss)Exact reconstruction of original (no data loss)
Compression RatioHigh (50–90% reduction)Moderate (10–50% reduction)
Use CasesImages (JPEG/WebP), audio (MP3/AAC), video (H.264/HEVC)Text files, source code, raw images (PNG/TIFF), lossless audio (FLAC)
Generation LossYes (cumulative quality degradation)No (unlimited compression/decompression)
Perceptual ImpactUnnoticeable at moderate compressionNone (perfect quality)

Typical Application Scenarios

Broadcast TV: Compressed video for cable/satellite TV (transmits multiple channels over limited bandwidth).

Web & Mobile Media: JPEG/WEBP images for websites, social media (Instagram/Facebook), and mobile apps (reduces load times and data usage).

Audio Streaming: MP3/AAC for Spotify, Apple Music, and podcasts (enables streaming over cellular networks).

Video Streaming: H.264/HEVC/AV1 for YouTube, Netflix, and TikTok (delivers high-quality video with minimal bandwidth).

Photography: HEIC/HEIF for smartphone photos (doubles the number of photos stored on a device).



了解 Ruigu Electronic 的更多信息

订阅后即可通过电子邮件收到最新文章。

Posted in

Leave a comment