In lossy compression, some data is permanently removed from the file. The original data cannot be fully recovered — decompressing a lossy file does not give back exactly the original. In exchange for this loss, much greater file size reductions are possible compared to lossless compression.
Lossy compression works by removing data that humans are less likely to notice — exploiting limitations of human perception.
JPEG (Joint Photographic Experts Group) is the most common lossy image format. It works by:
JPEG allows a quality setting (typically 0–100). Lower quality = more data removed = smaller file = more visible artefacts (blurring, blockiness). Higher quality = less data removed = larger file = better appearance.
| JPEG quality | File size | Visual quality |
|---|---|---|
| High (80–100%) | Larger | Excellent — hard to tell from original |
| Medium (40–79%) | Medium | Good — some artefacts on close inspection |
| Low (0–39%) | Very small | Poor — obvious blockiness and blurring |
JPEG is ideal for photographs, which have many smooth colour gradients. It performs poorly on images with sharp edges (logos, text), where visible "ringing" artefacts appear.
MP3 removes audio frequencies that humans are least sensitive to, using a psychoacoustic model:
Bit rate determines quality: 128 kbps = acceptable quality; 320 kbps = near CD quality. Lower bit rate = smaller file = more noticeable quality loss.
Video compression (MPEG, H.264, H.265) combines lossy image compression (for each frame) with temporal compression: storing only the differences between frames rather than full images every time, since most of a video frame is similar to the frame before it.
| Suitable for lossy | Not suitable for lossy |
|---|---|
| Website photos | Medical X-ray images |
| Music streaming | Source code files |
| Video streaming | Executable programs |
| Social media images | Archive backups |
8 questions · 19 marks
| Term | Definition |
|---|
Timed exam conditions.