Representing images — AQA GCSE Computer Science
Verified courseTeaching note checked against the official specification.
In digital systems, bitmap images are represented as grids of individual pixels, where each pixel is assigned a binary value determined by colour depth. Image file sizes are calculated by multiplying width, height, and colour depth, with metadata included to store essential rendering instructions such as resolution and dimensions.
Representing images explained
Image size is the amount of storage a bitmap needs, measured in bits or bytes.
Read the full explanation
A bitmap is a grid of pixels, and each pixel stores a binary code describing its colour. The number of bits used per pixel is the colour depth. To calculate image size, multiply the number of pixels by the colour depth: image size in bits = width in pixels × height in pixels × colour depth in bits per pixel. For example, a 100 × 50 pixel image at a colour depth of 8 bits has 100 × 50 = 5000 pixels, so 5000 × 8 = 40 000 bits, which is 40 000 ÷ 8 = 5000 bytes. Dividing by 1024 converts bytes to kibibytes where that convention is used. Increasing width, height or colour depth increases file size.
Your focus
- State the formula for bitmap image size in bits.
- Calculate the number of pixels from a given width and height.
- Convert a calculated bit total into bytes or kibibytes correctly.
Which command word is this?
Perform mathematical operations using the provided values, showing full working out and stating the answer with the correct unit.
Representing images exam tips
Topic Overview
Bitmap images are digital pictures constructed from a two-dimensional grid of tiny picture elements, known as pixels. In AQA GCSE Computer Science, understanding image representation requires mastering how binary numbers encode the colour of each individual pixel and how metadata provides the structural context needed to render the graphic correctly.
This topic directly links data representation to practical computing considerations such as storage capacity, network transmission speeds, and processor performance. Mastering the relationships between resolution, colour depth, and overall file size is essential for exam calculations and wider systems architecture questions.
Key Concepts
- →Pixel: The smallest identifiable unit of a digital image, arranged in a grid with an assigned binary code representing its colour.
- →Colour Depth (Bit Depth): The number of bits allocated to represent the colour of each pixel; n bits can encode 2^n unique colours.
- →Image Resolution: The total number of pixels forming an image, typically represented as width x height (e.g. 1920 x 1080).
- →Metadata: Ancillary data stored alongside pixel data, specifying critical attributes such as image dimensions, colour depth, resolution, and author.
- →File Size Formula: Minimum file size = width x height x colour depth (yields bits; divide by 8 for bytes, then 1024 for KiB).
Marking Points
- Image size in bits = width in pixels × height in pixels × colour depth in bits per pixel.
- The number of pixels is found by multiplying the image width by its height.
- Colour depth is the number of bits stored per pixel, so it multiplies the pixel count.
- A larger image or greater colour depth produces a larger file size.
- Converting bits to bytes divides by 8; converting bytes to kibibytes divides by 1024.
Examiner Tips
- 💡Write the formula first, then substitute the numbers, so method marks are visible.
- 💡Keep units consistent: state whether your answer is in bits, bytes or kibibytes.
- 💡Check whether the question gives colour depth in bits per pixel before multiplying.
- 💡Show every stage of calculation working clearly; even if an arithmetic error occurs at the final stage, method marks are awarded for multiplying dimensions by colour depth.
- 💡Watch out for the specified final unit in calculation questions (bits, bytes, KiB, or MiB) and convert your value carefully at the end.
- 💡When explaining the effect of increasing colour depth, explicitly state both the file size consequence (increases) and the visual quality consequence (smoother gradations, more realistic colours).
Common Mistakes
- Adding width and height instead of multiplying them; the correction is that pixel count is width × height.
- Forgetting to multiply by colour depth; the correction is that each pixel needs its bits, so pixel count × colour depth gives bits.
- Confusing bits and bytes; the correction is that the formula gives bits, and dividing by 8 gives bytes.
- Assuming that doubling image dimensions merely doubles the file size; doubling both width and height quadruples (4x) the total pixel count and file size.
- Using decimal prefixes (1000) instead of binary prefixes (1024) when calculating KiB and MiB; AQA mark schemes expect division by 1024 unless standard metric units (KB/MB) are explicitly permitted.
- Confusing vector graphics with bitmap images; AQA GCSE focuses primarily on bitmaps, which become pixelated when scaled up because each pixel represents a fixed square sample of colour.
Revision Plan
- 1Day 1: Learn core definitions (pixel, resolution, colour depth, metadata) and draw small 4x4 binary grids to see pixel mapping in action.
- 2Day 2: Practice colour depth calculations to identify how many bits are required for various colour counts (e.g. 2 colours = 1 bit, 256 colours = 8 bits).
- 3Day 3: Work through multi-step image file size calculation problems, ensuring accurate conversion between bits, bytes, and kibibytes.
- 4Day 4: Review metadata requirements and practice 2-mark and 4-mark explain questions on the trade-offs between image quality, storage space, and download speeds.
- 5Day 5: Complete timed past paper questions from AQA Paper 1 under strict exam conditions.
Exam Question Types
- 📋File size calculations: Multi-step mathematical questions requiring you to calculate raw file size from dimensions and colour depth, often requiring conversion to bytes or KiB.
- 📋Impact analysis questions: Short-answer questions asking you to describe how adjusting resolution or colour depth affects storage, download times, and visual clarity.
- 📋Metadata identification: Short-answer questions asking to state two or three examples of metadata stored within an image file.
- 📋Binary grid decoding: Questions where you translate a series of binary values into a visual monochrome or 4-colour pixel grid.
Command Word Expectations (AQA)
Perform mathematical operations using the provided values, showing full working out and stating the answer with the correct unit.
Set out reasons or mechanisms behind an effect (e.g. explain why file size changes), using linking phrases like 'because', 'which leads to', or 'therefore'.
Provide a brief, factual point or definition without extended explanation or calculation steps.
How Students Lose Marks (Examiner Pitfalls)
Step-by-Step Worked Solutions
Question: An uncompressed bitmap image has a width of 400 pixels, a height of 300 pixels, and uses a palette of 16 distinct colours. Calculate the minimum file size of the image in kibibytes (KiB). Show all your working.
- 1.Step 1: Determine the colour depth in bits. Since 2^n >= number of colours, 2^4 = 16, so the colour depth is 4 bits per pixel.
- 2.Step 2: Calculate the total number of pixels: 400 x 300 = 120,000 pixels.
- 3.Step 3: Calculate the total size in bits: 120,000 pixels x 4 bits = 480,000 bits.
- 4.Step 4: Convert bits to bytes: 480,000 / 8 = 60,000 bytes.
- 5.Step 5: Convert bytes to kibibytes (KiB) using binary prefix 1024: 60,000 / 1024 = 58.59375 KiB (or 58.59 KiB to 2 d.p.).
Question: A digital graphic designer increases the colour depth of an image from 8 bits to 24 bits and doubles both the width and the height. Explain the overall effect these changes have on the image file size and image quality.
- 1.Step 1: Assess the impact of colour depth. Tripling the bits per pixel (from 8 to 24 bits) multiplies the data required per pixel by 3 and increases the number of available colours from 256 (2^8) to 16,777,216 (2^24), resulting in higher photographic fidelity and less colour banding.
- 2.Step 2: Assess the impact of dimension changes. Doubling both width (2x) and height (2x) increases total pixel count by a factor of 4 (2 x 2 = 4), which increases spatial resolution and sharpness.
- 3.Step 3: Combine factors to determine the overall file size multiplier: 3 (colour depth) x 4 (dimensions) = 12 times larger.
- 4.Step 4: Conclude clearly on quality and file size.