Skip to content
Cambridge AS & A Level9626

Compression

Information Technology 9626 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Compression notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Compression notes as text: skim, search, and jump between subtopics.

~9 min read

1. What compression is

Compression reduces the file size of an image. A compressed image has a lower number of bits than the original.

Fewer bits means less storage space is needed, and fewer bits to transfer in a set unit of time. The image is transferred in a shorter time.

Compression can lose detail about the image. It can also remove image metadata.

Examiner insight

“Questions where candidates are asked to explain, require a statement and at least one reason to score both marks.”

Worked example 12 marks

A photographer compresses an image before emailing it. Explain why.

  1. 1

    Compression reduces the file size / the number of bits in the image. [1]

  2. 2

    So there are fewer bits to transfer, and the image is transferred in a shorter time. [1]

2. Lossless compression

Lossless compression removes unnecessary or repeated data. The compressed data can be reconstructed, so the original image can be restored perfectly.

It has little or no effect on how the image looks. It does not permanently remove data.

It can store extra image data, such as an index of image data. The reduction in size may not be as much as expected.

Examiner insight

“Typically, responses focused on the impact on the quality of the file, but some also stated that data was permanently removed, or not permanently lost, as appropriate.” “Common errors were to confuse the two types of compression and their effects or to compare the compression.”

Worked example 11 mark

Describe what is meant by Lossless compression.

  1. 1

    Compressed data can be reconstructed // does not permanently remove data. [1]

3. Lossy compression

Lossy compression permanently removes data. The compressed data cannot be reconstructed, so the original image cannot be perfectly restored.

It can reduce the resolution of detail, the number of colours or the colour depth.

Repeated opening and saving of a lossy image during editing results in a degraded image.

Examiner insight

“A good comparison of the effects of the two types involves referring to the degrading effects or compression artefacts seen in images using lossy compression but not in lossless compression.”

Worked example 11 mark

Describe what is meant by Lossy compression.

  1. 1

    Compressed data cannot be reconstructed // it permanently removes data. [1]

4. Effects of compression on images

Lossless: little or no effect on the visual appearance. The image keeps its quality.

Lossy: the quality is reduced. The image is less vibrant and less detailed, and can look blocky or pixelated. This can have a significant visual impact.

Repeated lossy compression can add compression artefacts, for example halos, banding or striping. Photographs then look unrealistic or become unusable.

Examiner insight

“Generic answers about compression did not gain credit.” “Most candidates could provide an outline of what compression does to digital images with statements referring to the loss of quality.”

Worked example 18 marks

Compression is applied to digital images for many reasons.

Evaluate the use of compression on digital images.

  1. 1

    Compressed images have fewer bits, so less storage space is needed. [1]

  2. 2

    Fewer bits to transfer in a set unit of time, so the image is transferred in a shorter time. [1]

  3. 3

    Lossless compression removes unnecessary or repeated data. [1]

  4. 4

    So the original image can be perfectly restored, with no loss of quality. [1]

  5. 5

    Lossy compression permanently removes data. [1]

  6. 6

    So the original image cannot be perfectly restored. [1]

  7. 7

    Lossy reduces the resolution of detail or the colour depth, so the image looks blocky or pixelated. [1]

  8. 8

    Conclusion: compression is worth using to save storage and transfer time, but lossless should be chosen where quality matters, and lossy only where a small file matters more. [1]

Recap

  • Compression reduces the file size: fewer bits to store and to transfer.
  • Lossless: data can be reconstructed. The original image is restored perfectly.
  • Lossy: data is permanently removed. The original cannot be restored.
  • Lossless has little or no effect on appearance. Lossy reduces quality: blocky, pixelated, fewer colours.
  • Repeated lossy saving adds compression artefacts such as halos, banding and striping.
  • A question on the effects on images needs a consequence for the image, not only a smaller file.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State what compression does to an image file.1 mark
    Answer
    1. It reduces the file size (the number of bits used to store the image).

    Trap: Writing only "it makes it smaller": the credited term is file size.

  2. A school stores thousands of photographs on a server. Give two benefits of compressing the images.2 marks
    Answer
    1. The file size is reduced, so less storage space is needed [1].
    2. There are fewer bits to transfer, so each image is transferred in a shorter time [1].

    Trap: Writing only "the file is smaller" with no consequence: examiners want less storage space and a quicker transfer.

  3. Describe what is meant by lossless compression.2 marks
    Answer
    1. It removes unnecessary or repeated data [1].
    2. The compressed data can be reconstructed, so the original image can be perfectly restored [1].

    Trap: Lossless compression still removes unnecessary or repeated data. What matters is that nothing is permanently lost.

  4. Describe what is meant by lossy compression.2 marks
    Answer
    1. It permanently removes data [1].
    2. The original image cannot be perfectly restored [1].

    Trap: "Removes some data" is not enough: the word permanently is credited.

  5. A designer opens a lossy compressed photograph, edits it and saves it again. She does this many times. Describe the effect on the photograph.3 marks
    Answer
    1. Each repeated opening and saving results in a degraded image [1].
    2. Compression artefacts are introduced, for example halos, banding or striping [1].
    3. The photograph can look unrealistic or become unusable [1].

    Trap: Thinking lossy compression only matters the first time it is applied.

  6. A company keeps the master copy of its logo for future editing. Explain why it should use lossless compression for this copy.3 marks
    Answer
    1. Lossless compression does not permanently remove data: it can be reconstructed [1].
    2. So there is no loss of quality and the logo looks the same [1].
    3. It is not subject to generational degradation, so it can be edited and resaved without loss of quality [1].

    Trap: Choosing lossy because the file is smaller, without weighing the quality that is lost.

  7. A student says: "Lossless compression always makes an image file much smaller." Explain why the student may be wrong.2 marks
    Answer
    1. Lossless compression can store extra image data, such as an index of image data [1].
    2. So the reduction in size may not be as much as expected, or may not be worthwhile [1].

    Trap: Assuming that lossless compression is a better version of lossy with no cost.

  8. Compare the effects on a photograph of lossless compression and lossy compression.4 marks
    Answer
    1. Lossless has little or no effect on the visual appearance of the image [1].
    2. The original image can be restored in its entirety, because no image data is lost [1].
    3. Lossy reduces the resolution or the number of colours, so the image can look blocky or pixelated [1].
    4. Lossy can add compression artefacts, which are not seen with lossless [1].

    Trap: Writing only that both reduce the file size. The question asks for the effect on the image.

  9. A news website must load pages quickly, and its photographs are viewed on screen. A designer says all the photographs should be compressed with lossy compression. Give two advantages and two disadvantages of this choice.4 marks
    Answer
    1. Advantage: the file size is reduced, so less storage space is needed [1].
    2. Advantage: fewer bits to transfer, so the page loads in a shorter time [1].
    3. Disadvantage: data is permanently removed, so the original cannot be restored [1].
    4. Disadvantage: quality is reduced, with lower resolution or fewer colours, so photographs can look pixelated [1].

    Trap: Listing only the advantages, or giving a disadvantage that is about the file size.

  10. A museum scans its old paintings. Restorers open each master scan, edit it and save it many times. Smaller copies of the same images appear on the museum website, where visitors complain that pages load slowly. The IT manager proposes saving every image, the master scans included, with lossy compression to cut storage costs. Evaluate this proposal.8 marks
    Answer
    1. Lossy compression reduces the file size, so less storage space is needed for the collection [1].
    2. Fewer bits to transfer, so the website images are transferred in a shorter time [1].
    3. But lossy compression permanently removes data [1].
    4. So the original master scans could never be perfectly restored [1].
    5. The restorers' repeated opening and saving would degrade each master scan further [1].
    6. Compression artefacts such as halos or banding are introduced, so the paintings look unrealistic or become unusable [1].
    7. Lossless compression on the masters removes only unnecessary or repeated data, so they can be resaved without loss of quality [1].
    8. Conclusion: reject the proposal for the masters. Use lossless for the master scans and lossy only for the website copies, because the storage saving does not justify permanently degrading the originals [1].

    Trap: Giving only the file-size benefits with no consequence for the images, or confusing the two types: examiners reported both.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
Compression makes the file smaller.Compression reduces the file size, so less space is taken up on a storage device.
Lossy compression removes some data.Lossy compression permanently removes data, so the original cannot be restored.
Lossless compression loses quality.Lossless: the original image can be reconstructed because no image data is lost.
A smaller file, with no mention of the image.A smaller file, with lost resolution or colours, or compression artefacts.

Frequently asked questions

What does compression do to an image file?
Compression reduces the file size of an image, which is the number of bits used to store it. A compressed image has fewer bits, so less storage space is needed. There are also fewer bits to transfer, so the image is transferred in a shorter time.
What is the difference between lossy and lossless compression?
Lossy compression permanently removes data, so the compressed data cannot be reconstructed and the original image cannot be perfectly restored. Lossless compression removes only unnecessary or repeated data, so the compressed data can be reconstructed and the original restored perfectly. Lossless has little or no effect on how the image looks.
What effect does lossy compression have on an image?
Lossy compression can reduce the resolution of detail, the number of colours or the colour depth. The image can look less vibrant and less detailed, and can look blocky or pixelated. Repeated opening and saving of a lossy image degrades it further, and compression artefacts such as halos, banding or striping can appear.
Should a master copy that will be edited use lossy or lossless compression?
Use lossless compression for a master copy that will be edited. It does not permanently remove data, so the original can be reconstructed. Lossy compression would degrade the image each time it is opened and saved during editing, so the image would no longer be perfect.
Is a smaller file size the only effect of compression that matters?
No. A reduction in file size without a consequence for the image does not answer a question about effects. Name the effect on the image itself, such as lost resolution or colours, blocky or pixelated areas, or compression artefacts. Compare lossless and lossy compression on the image.
What are the advantages and disadvantages of lossy compression for photographs on a news website?
Advantages: the file size is reduced, so less storage space is needed, and fewer bits to transfer means the page loads in a shorter time. Disadvantages: data is permanently removed, so the original cannot be restored, and quality is reduced, so photographs can look pixelated.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters