File compression

When we save any sort of file, for example, an image, audio file, etc. it can take up a lot of storage on our hard drive (or, more likely, SSD).

To save space, we can use something called compression. This is when we take a large file and making it smaller, by removing some of the data from it.

Types of compression

Depending on whether the original file can be perfectly reconstructed from the compressed version or not, there are two types of compression:

Benefits of compression

Compressing a file makes it smaller: there are two main benefits to this:

Drawbacks of compression

flashcards

QuestionAnswer
What is file compression?Taking a large file and making it smaller by removing some data.
What are the two main types of file compression?Lossy compression and lossless compression.
What is the main benefit of compressing a file?It takes up less storage space and takes less time and bandwidth to transfer over the internet.
What is a drawback of lossy compression?The original file cannot be perfectly reconstructed; some data is lost, which can reduce quality.
What is a drawback of lossless compression?The original file can be perfectly reconstructed, but it often uses a lot of CPU power to compress and decompress, making it slow.