Compression and file size – Year 9 Computing lesson
Pupils learn to calculate an image's file size, use run-length encoding, and recommend lossy or lossless compression.
Lesson 5 of 6 in unit 9.4 Inside the CPU, taught in Year 9, Spring 2. It answers one big question: How does a phone fit thousands of photos into its storage?
By the end, pupils can calculate an image's file size, use run-length encoding, and recommend lossy or lossless compression.
- The Build (the main task)
- Recommend lossy or lossless compression for four phone files – a photo, a song, an app's code and a contract – and justify each.
- Support version
- Sentence starters for each file, with the question 'Would losing any data break or change this file?' printed above them.
- Challenge
- Calculate the size of a 400 × 300 photo with 24-bit colour, in bytes.
- Real-world link
- A phone saves each photo as a compressed file; today pupils decide which files on a phone can lose data and which cannot.
- Key words
- Lossy compression, Lossless compression and Reduce, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “Data removed by lossy compression is put back when the file is opened”; “Lossless compression means no compression happens, so the file stays the same size”.
- National Curriculum
- NC6 (how instructions are stored and executed; text, sound and pictures as binary); NC4 (boolean logic (AND, OR, NOT) in circuits and programming; binary numbers, addition and conversion).
Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.
Pupils can do it all on paper.
Also sold in the Inside the CPU unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
What's included
- Slide deck (PowerPoint)
- Lesson plan (Word)
- Worksheet (Word)
- Support worksheet with scaffolds (Word)
- Compression and file size - Quiz Quiz Trade Cards
- Single-teacher licence: use and adapt it with your own classes
More for KS3 Computing
See allPupils learn to describe how the PC, MAR and MDR are used to fetch an instruction, and trace their values in a trace table.
Free sample lessonPupils learn to explain why a CPU only runs machine code and translate LMC instructions between assembly language and machine code.
Pupils learn to write and trace LMC programs using INP, OUT, LDA, STA, ADD, SUB and HLT, recording the accumulator.
Written for the specifications named. Not endorsed by or affiliated with any exam board.