Large files can slow everything down.
Images, audio and video files can contain a lot of data.
Compression reduces file size so files take less storage space and can be transmitted more quickly.
↓
Compression
↓
Smaller file
Understand why files are compressed, the difference between lossy and lossless compression, and how run-length encoding reduces repeated data.
Images, audio and video files can contain a lot of data.
Compression reduces file size so files take less storage space and can be transmitted more quickly.
Lossy compression permanently removes some data to make the file much smaller.
Lossless compression reduces file size without removing data, so the original file can be perfectly rebuilt.
Lossless compression is like folding clothes more neatly. Nothing is thrown away.
Lossy compression is like removing things you decide you do not really need.
To calculate how much a file has been reduced, subtract the compressed size from the original size.
Run-length encoding, or RLE, is a lossless method that replaces repeated values with a count and the value.
It works best when there are long runs of repeated data, such as simple images with large areas of the same colour.
Lossy compression is often used for images, audio and video where a small loss of quality may be acceptable.
Lossless compression is needed when every bit of data must be preserved exactly.
Some files must keep every piece of data exactly the same.
Compression reduces file size.
Lossy compression removes data permanently. Lossless compression keeps all data and allows the original file to be rebuilt.
RLE is a lossless method that stores repeated values as a count and value.
Topic 1 is complete. The next topic explains how data is sent from one device to another.