GCSE · Computer Science · Edexcel · Spec 1CP2
Lossy compression
Two photos. They look the same to you. One of them has had a big chunk of its data binned, for good. So why would anyone ever want that one?
Predict, then check
Commit first. Guessing out loud is how this one sticks.
A photo is squashed with a lossy method, then decompressed. What do you get back?
Computer Science · Data
Is lossy a good choice here?
Would lossy compression be suitable for each file? Pick a file, then pick a side.
Still to sort
Lossy is suitable (0)
A slight loss of quality is fine in return for a smaller file.
Where the line is: Ask yourself: does this file have to be exact, or is a slight loss of quality an OK price for a smaller file?
Lossy is not suitable (0)
The file must be exactly preserved, or the loss may be noticeable.
Where the line is: If an exact copy matters, or the loss would show, lossy is the wrong tool.
Make the call for each file, then read the reason.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Much smaller files. Some data gone for good.
What you need to know
- Compression uses an algorithm (just a sequence of steps) to cut the number of bits a file needs.
- Whatever the method, a compressed file has to be decompressed before you can access it again.
- Lossy compression makes the file smaller by permanently removing some of its data.
- What goes is data that's unnecessary or less noticeable, like detail your eye or ear is unlikely to spot.
Have a goLossy compression is a bedroom tidy-up with one rule: bin whatever nobody will miss. Which goes in the bin first: detail you'd barely notice, or detail that jumps right out at you?
The detail you'd barely notice.
Lossy targets unnecessary or less noticeable data. Binning the eye-catching detail would be the one thing everyone does notice.
- Because that data is gone, decompressing only recreates an approximation. You never get an exact copy back.
- Compared with lossless, lossy generally gives a much smaller file, but it may reduce the quality.
Have a goYou need the smallest file you can get, and a slight loss of quality is fine. Which method is generally the better fit: lossy or lossless?
Lossy.
Lossy generally gives the much smaller file. Lossless keeps everything exact, so it's the wrong pick when size matters most and a little loss is OK.
- Lossy doesn't automatically mean poor quality. The removed stuff is the less noticeable bit, so pictures can look very similar.
- Lossy formats include JPEG for images, MP3 (and AAC) for audio and MP4 for video.
Have a goA classmate announces, very confidently: 'JPEG is the lossy format for songs.' Fix their sentence.
JPEG is for images. Songs use MP3 (or AAC).
Each lossy format matches a type of file. JPEG is an image format, so a song needs an audio one like MP3 or AAC.
- Choosing a method? Weigh how accurate the data must be, how much quality loss is acceptable, and how much size matters.
- Lossy suits files where a slight loss is fine. Not text files, or images enlarged on a very large print.
The big picture
Lossy compression makes a file much smaller by throwing away data you're unlikely to notice. That data is gone permanently, so decompressing only gets you an approximation back. It's a trade: size versus exactness. Your job is knowing when the trade is worth it.
Key points
Worked example
Problem
A bank wants to shrink its file of customers' account balances. A podcast team wants a smaller file for each episode. For each one, decide whether lossy compression is suitable.
⚠ Watch out
Thinking lossy compression always ruins the quality, or that decompressing a lossy file gets you the original back. Both are wrong. It removes less noticeable data, so the result can look or sound very similar, but it can never be restored exactly.
Memory hook
Lossy = lost. Same first letters, same meaning: whatever a lossy file throws away is lost, and it stays lost.
Check yourself
Without looking back: a friend decompresses a lossy file and says they now have the exact original. What would you tell them, and why?
Flashcards
(11)What does compression do to a file?
What has to happen to a compressed file before you can access it again?
What does lossy compression do to the data?
What sort of data does lossy compression remove?
After lossy compression, what does decompression give you?
Lossy compared with lossless: what happens to file size and quality?
Does lossy compression always give a poor-quality file?
Name a lossy format for images, one for audio and one for video.
What three things decide between lossy and lossless?
When is lossy compression a good choice?
Give two cases where lossy compression is not suitable.
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore Edexcel GCSE Computer Science topics
How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 26 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.