Making files smaller
About this lesson: Making files smaller
In short
Big files fill storage and take longer to send. Time to send = file size ÷ connection speed. Change the speed and compare a message, a photo, a song and a film clip.

What you'll explore
- File size: Why size matters
- Big files fill storage and take longer to send. Time to send = file size ÷ connection speed.
- Run-length encoding: Count the repeats
- Compression stores the same information with fewer bits.
- When it fails: Not every picture shrinks
- Run-length encoding only helps when there are long runs. A busy picture has short runs. Compare the two pictures and the number of values each needs.
- Check yourself: Encode a row
- A row of pixels is: white, white, white, black, black, white, white, white.
Also in this lesson
- Common mix-ups
- Lossless and lossy
- Encoding a row
- Pixel art
Words to know
- file size
- How much storage a file takes, in bytes.
- compression
- Storing the same information using fewer bits.
- lossless
- Compression where the original can be rebuilt exactly.
- lossy
- Compression that throws away some detail.
- run-length encoding
- Storing each run of repeated values as a count and a value.
- pixel
- One tiny dot of colour in a picture.
Sources
- BBC Bitesize GCSE Computer Science: Compression