Compression
Learning outcome
Be able to explain what is compression and tell the difference
between types of compression.
What is compression
It is simply the reduction in size of any computer file. In order to
compress a file size, the data structure needs to be altered so
that it still resembles the original file, but requires less storage
space.
The reason for compression is
Attaching documents to email
Storing large files on a computer
Transferring files on a storage device
Speeding up the download time of large file
Types compression
Lossy compression
Deletes parts of the file, reducing the file size, but when the file is
decompressed, the deleted parts can not be restored. Lossy
compression is never used for text files as characters will be lost, but
it is often used for images and sound files.
Lossless compression
Prevents any data or quality being lost when the file is compressed
and decompressed. This is ideal for files where it is essential that
neither data nor quality is lost. However