A digital image is made up of thousands (or millions) of tiny squares called pixels (picture elements). Each pixel stores a colour as a binary number. The more bits used per pixel, the more colours are available.
Colour depth is the number of bits used to store each pixel's colour. It determines how many different colours can be represented.
| Colour depth | Number of colours | Common use |
|---|---|---|
| 1-bit | 2 (black & white only) | Simple icons, QR codes |
| 4-bit | 16 colours | Early computer graphics (CGA) |
| 8-bit | 256 colours | GIF images, web icons |
| 16-bit | 65,536 colours | High colour, older displays |
| 24-bit | 16,777,216 (True Colour) | Photos, modern screens |
24-bit True Colour uses 8 bits for Red, 8 bits for Green, and 8 bits for Blue (RGB). Each channel can take 256 values (0–255), giving 256 × 256 × 256 = 16,777,216 possible colours.
Resolution is the number of pixels in an image, usually given as width × height (e.g. 1920 × 1080).
A higher resolution means more pixels, so the image contains more detail — but also requires more storage space. Image resolution should not be confused with screen resolution (the number of pixels a display can show).
Image files also contain metadata — data about the image stored in a header at the start of the file. Metadata includes:
| Metadata item | Example value |
|---|---|
| Image width | 800 pixels |
| Image height | 600 pixels |
| Colour depth | 24 bits |
| File format | BMP, PNG, JPEG |
| Date taken | 2025-07-24 |
Metadata adds a small overhead to the file size, but is essential for software to know how to decode the image data.
| Change | Effect on quality | Effect on file size |
|---|---|---|
| Increase resolution | More detail, sharper image | Larger |
| Decrease resolution | Less detail, more pixelated | Smaller |
| Increase colour depth | More colours, smoother gradients | Larger |
| Decrease colour depth | Fewer colours, banding/dithering | Smaller |
8 questions · 20 marks
| Term | Definition |
|---|
Timed exam conditions.