← Making data smaller: project briefs

Squash it and see

Project brief · after lesson 2: Lossy or lossless

A club wants to share a lot of files without using up its storage or its internet. Your job is to find out what compression really does, and to say when it is safe to use.

Take one image and one text document your teacher approves. Save each in at least two ways, one that keeps everything and one that throws some away. Compare the file sizes and look closely at what changed. Then compress a short row of pixels by hand using run-length encoding, and have a partner rebuild it.

Steps along the way

Tick each one when it is done.

Hand in

Show that you can

Your work and your explanation should show each of these.

Why compression is needed

Lossless compression — run-length encoding

Lossy vs lossless — trade-offs and consequences

Make it yours