🎨
How Computers Store Images (Plain English)
Zoom close into any screen and you'll see a grid of coloured squares called pixels. In RAM, every single pixel is just a binary number (1s and 0s). The more bits per pixel (colour depth), the more colours you get, but the larger the file!
Stored as bytes (8 bits each). Hover over a byte to see which pixels it represents:
How Run-Length Encoding works: Instead of repeating individual pixels (e.g. Blue, Blue, Blue, Blue), RLE stores the count and the pixel value (e.g. 4, Blue). It's lossless compression—no detail is thrown away!
🌈
Why Real Photos Need Millions of Colours (Colour Banding)
Human eyes can perceive around 10 million distinct colours. In 24-bit True Colour, computers use 8 bits for Red, 8 for Green, and 8 for Blue (256 × 256 × 256 = 16,777,216 colours), allowing buttery-smooth gradients in skies and skin tones.
⚡ Look for "Colour Banding" (Posterization): When you drop to 8-bit, 4-bit, or 2-bit, the computer runs out of intermediate color codes. Smooth sky gradients split into harsh, visible blocks of solid stripes!
| Colour Depth | Max Colours | Bytes per Pixel | Total File Size (Bytes / kB) | Space Saved vs 24-bit | Visual Effect |
|---|
Select a connection speed to see estimated download times (Time = File Size in Bits ÷ Speed in bps):
🌊
How Sound is Digitized (Plain English)
Real sound is a smooth, continuous wave of vibrating air molecules. A computer can't store infinity, so an Analogue-to-Digital Converter (ADC) measures the wave's height thousands of times per second (Sample Rate) and rounds each measurement to the nearest binary number (Quantization).
The height of the curve directly controls musical pitch! The continuous blue wave produces a smooth pitch glide. The red staircase shows how digital sampling quantizes that glide into discrete stair-step notes based on your Bit Depth and Sample Rate.
Test real sound degradation! Record a quick 2-second voice clip (or use a built-in sample). Dial down the Sample Rate to hear high frequencies get lost (like speaking on an old landline telephone), and dial down the Bit Depth to hear the gritty crunch of retro video games (quantization noise)!
📌 AQA Core Revision Topics & Mark Scheme Rules
Dual Prefix Conventions (kB vs KiB)
The formula Width × Height × Colour Depth yields raw BITS. Divide by 8 to obtain Bytes (B).
AQA tests both decimal and binary prefix conventions:
• 1 kB = 1,000 bytes
• Bytes ÷ 1,000 = kB
• 1 KiB = 1,024 bytes
• Bytes ÷ 1,024 = KiB
Resolution vs Colour Depth (Impact & Trade-offs)
Be prepared to explain the distinct impacts of changing image resolution versus changing colour depth:
• Packs more pixels into the image (W × H or DPI).
• Results in sharper, crisper detail.
• File size increases proportionally to pixel count.
• Allocates more bits per pixel ($2^n$ colours).
• Allows smoother gradients and realistic shades.
• File size increases proportionally to bit depth.
Role & Examples of Image Metadata
Never write only "metadata is data about data"—that is worth at most 1 mark. For full marks, specify the exact attributes and explain why the computer needs them.
• Colour Depth (bits per pixel, bpp)
• Resolution (dots/pixels per inch, dpi)
• File Format / Encoding (e.g. BMP, PNG)
📝 AQA Past Paper Style Questions with Mark Schemes
Q1: An image has dimensions of 200 pixels by 150 pixels with a colour depth of 8 bits per pixel.
(a) Calculate the file size of the image in bytes. Show your working.
(b) State the size of the image in kilobytes (kB) using the decimal convention, or in kibibytes (KiB) using the binary convention.
• Decimal convention: 30,000 ÷ 1,000 = 30 kB
• Binary convention: 30,000 ÷ 1,024 ≈ 29.3 KiB (or 29.30 KiB)
Q2: State two items of metadata stored in an image file, and explain why metadata is essential for displaying a bitmap image.
Q3: A digital photograph's colour depth is increased from 8 bits per pixel to 24 bits per pixel.
Explain one advantage and one disadvantage of this change.