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?

Computer Science · Data

Lossy or lossless: what do they share, and where do they split?

Nine statements. For each one, tick lossy, lossless, both, or neither. Go with your gut, then check.

  • A Lossy compression
  • B Lossless compression
  1. The file ends up smaller than the original
  2. The compressed file has to be decompressed before you can access it again
  3. A compression algorithm, which is a sequence of steps, does the work
  4. Some data is permanently removed
  5. Decompressing gives back an exact copy of the original
  6. Decompressing only recreates an approximation of the original
  7. Generally gives the much smaller file when the two are compared
  8. May reduce the quality of the file
  9. The compressed file can be used straight away without decompressing it

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?

Lossy compression

Does lossy always ruin the quality?

A friend sends you a photo that was squashed with lossy compression. The file is much smaller than the original, but the picture looks fine to you.

Which of these is closest to what you think right now?
How sure are you?

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.

5 of 5 still to sort.

Make the call for each file, then read the reason.

Your turn

Put the trade-off into words

A photographer saves a large collection of holiday photos as JPEG files. Give one advantage and one disadvantage of using lossy compression for these files. [2 marks]

0 words · your answer stays on this page and is not sent anywhere.

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

1Compression reduces the number of bits needed to represent a file, and a compressed file must be decompressed before it can be accessed again.
2Lossy compression permanently removes some data, usually data that's less noticeable, such as detail the human eye or ear is unlikely to notice.
3A lossy file can never be restored to an exact copy of the original. Decompression recreates only an approximation.
4Lossy generally gives a much smaller file than lossless but may reduce quality. It does not always give a poor-quality file.
5Choose lossy when a slight loss of quality is acceptable for a smaller file, and not when the file must be exactly preserved.

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?
It reduces the number of bits needed to represent the file, using a compression algorithm (a sequence of steps).
What has to happen to a compressed file before you can access it again?
It must be decompressed.
What does lossy compression do to the data?
It permanently removes some of it, to reduce the file size.
What sort of data does lossy compression remove?
Data considered unnecessary or less noticeable, such as detail the human eye or ear is unlikely to notice.
After lossy compression, what does decompression give you?
Only an approximation of the original, never an exact copy. The compression is not fully reversible.
Lossy compared with lossless: what happens to file size and quality?
Lossy generally gives a much smaller file, but it may reduce the quality.
Does lossy compression always give a poor-quality file?
No. It removes less noticeable data, which may not affect the perceived quality, especially to the human eye or ear.
Name a lossy format for images, one for audio and one for video.
Images: JPEG. Audio: MP3 (or AAC). Video: MP4.
What three things decide between lossy and lossless?
How accurate the data must be, how much loss of quality is acceptable and how important a small file is.
When is lossy compression a good choice?
When a slight loss of quality is acceptable in return for a smaller file.
Give two cases where lossy compression is not suitable.
Files that must be exactly preserved, such as text files, and an image to be enlarged on a very large print, where the loss may be noticeable.

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 posted

More Edexcel GCSE Computer Science topics

See the full Edexcel Computer Science curriculum →

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.