Squash It
Compression is not something a file has. It is a bet about what nobody will miss, and the only real question is whether that bet is safe for the file in front of you.
Get the method right under pressure
Free interactive practice on the steps that lose marks under exam pressure.
Start revising freeWhat you'll cover
A bet about what nobody will miss
You met the two kinds of compression on the utility software topic: one lets the original come back exactly, the other throws detail away in exchange for a much smaller file. Those are the definitions, and knowing them is worth about one mark. This topic is about the part that is actually asked: choosing. And there is a way of seeing it that makes choosing straightforward. ⚠️ Compression is not something a file HAS. It is a bet about what nobody will miss. One method bets that nothing at all can be spared - so it keeps every last byte, and saves less space as the price of that caution. The other bets that some detail will never be noticed - so it discards that detail and saves a great deal more. The whole question is whether the bet is safe for the file in front of you. Which is why the same photograph can be compressed one way for one purpose and must not be for another, and why "which is better" turns out not to be a question with an answer.
Words for compression
Five terms. The first three you already have; the last one is where people go wrong.
Match each file to what it can afford to lose
- A program the computer has to run
- A spreadsheet of financial records
- A photograph shown small on a web page
- A music track for casual listening on a phone
- nothing, because a single changed byte can stop it running at all
- nothing, because an altered figure is simply wrong rather than slightly blurred
- detail that would not be visible at the size it is displayed
- detail that most listeners would not be able to hear anyway
What you gain, and what each bet costs
The first column is the reason anyone compresses anything. The other two are the two different wagers you can make to get it.
How to justify a choice of method
Your specification is explicit that naming the two types is not the answer. A question wants a choice, tied to a scenario, with a reason. There is one question that gets you there faster than anything else. ⚠️ Ask: would anything BREAK if some of this file changed slightly? Not whether it would look slightly worse. Whether it would break - stop working, become wrong, stop being what it was for. If yes, nothing can be spared, and the choice is made for you. If genuinely no, the other option is open and will save you far more. Then say what you gave up, because both routes cost something and the answer that names the cost is the one that reads as a decision rather than a guess. ⚠️ And notice the order. A weak answer starts by naming a method and looks for a reason afterwards. A strong answer starts with what the file needs, and the method follows from it - which also means you can answer about a file you have never heard of.
The question that settles it
You have to choose a compression method for a file you know nothing about. Which single question settles it fastest?
- Would anything break if some of the file changed? If yes, nothing can be spared
- Is the file large? If it is, use the method that saves the most
- Is it a picture? If so, discard detail
- Which method saves more space? Always choose that one
One photograph, two decisions
A photographer takes a picture. It ends up in two places, and the right answer is different in each - which is the whole point. On the website. The visitor sees it small, on a screen, for a few seconds. Detail that fine will not survive being displayed at that size anyway, so throwing it away costs the visitor nothing and the page loads far faster. The bet is safe. Discard the detail. In the archive. ⚠️ Not because archives are special, but because the bet fails here. The archive copy is the one every future version will be made from - a print, a crop, a version for a screen that does not exist yet. Detail discarded now is discarded for all of those too, and you cannot know today what tomorrow will need. ⚠️ And this is what makes it a one-way door. Decompressing the website copy gives you back a usable photograph. It does not give you back the detail, because there is nothing left in the file to rebuild it from. A bet you have already lost cannot be un-placed. So: same photograph, two different correct decisions. "Which method is better" was never the question. "Is the bet safe here" always was.
True about the two kinds
Select the TWO statements that are true.
- Decompressing a file that was compressed lossily does not bring back the discarded detail
- Lossless compression usually saves less space than lossy compression does
- Lossless compression works by discarding detail nobody will notice
- A file compressed lossily can be restored exactly by decompressing it
Complete the compression paragraph
Reducing the amount of storage a file takes up is called _____. A method that allows the original to be rebuilt exactly is _____, while a method that permanently throws away detail in exchange for a much smaller file is _____. Turning a compressed file back into a usable one is called _____.
Which would you choose
Five files, three lives. Ask what would break before you answer.
Spot what is true of the two kinds
Tap the TWO statements that are true.
- Lossy compression discards detail permanently
- Compressing a file makes it quicker to send across a network
- Lossless compression usually saves more space than lossy compression
- Decompressing a lossily compressed file restores the original exactly
Order the decision
Put the steps of choosing a compression method into the order you should take them.
- Ask what the file is actually going to be used for
- Ask whether anything would break if its contents changed slightly
- Choose the method that keeps everything if the answer is yes, and the other if it is genuinely no
- Check whether this is the copy that future versions will be made from
- State what was given up, because either choice costs something
Three compression calls
Three decisions. Each answer has to carry the reason, not just the method.
- A recording studio has to archive its master recordings, which will be re-edited and re-released for years to come. Which method, and why?
- A student writes that lossy compression is simply better, because it saves more space. What is wrong with that?
- A web page loads slowly because its images are very large files. What does compressing them buy, and what does it cost?
Explain the choice, not just the two types
A friend can define both kinds of compression perfectly and still loses most of the marks on questions about them. Write them the answer that explains why.
- Give two reasons a file might be compressed in the first place
- Explain what lossless compression does, and what it costs
- Explain what lossy compression does, and what it costs
- Give the single question you would ask to decide between them for a file you know nothing about
- Finish with a concrete case where the same file should be compressed one way for one purpose and a different way for another