Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Lossy compression of an image by reducing resolution or colour depth worksheet is part of the IGCSE Computer Science 0478 — 1.3 Data Storage and Compression journey. Print it as a booklet?
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1size = 800 * 600 * 24 | AThe size in bits of the original image: width x height x colour depth, before any lossy compression. | |
| 2size = 400 * 300 * 24 | BThe student multiplied by both colour depths. After reducing from 24 bits to 8 bits, only the new depth of 8 should be used, not both. | |
| 3Lossy compression can reduce the colour depth from 24 bits to 8 bits, so each pixel needs a third of the bits. | Csaving = before - after | |
| 4Work out the saving by subtracting the size after compression from the size before. | DThe student halved the width and height but then also divided by 2. Halving both dimensions gives a quarter, so the size is calculated twice over and the result is wrong. | |
| 5size = 400 * 300 * 24 / 2 | Esize = width * height * 8 | |
| 6size = 800 * 600 * 8 * 24 | FThe size in bits after the width and height are both halved, which is one quarter of the original size. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
lossy image compression — Reduces an image's resolution or colour depth to shrink the file. Detail is lost for good. Recalculate width x height x depth to see the saving.newWidth ← width / 2
newHeight ← height / 2newWidth ← width / 2
newHeight ← height / 2depthBefore ← 24
depthAfter ← 8 // 256 colourssizeBefore ← 800 * 600 * 24
sizeAfter ← 400 * 300 * 24
saved ← sizeBefore - sizeAfternewDepth ← 8
sizeAfter ← newWidth * newHeight * newDepth