Skip to topic
    ← Back to course topics

    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.

    Read the Representing images study guideFull revision notes for AQA GCSE Computer Science

    Your focus

    1. State the formula for bitmap image size in bits.
    2. Calculate the number of pixels from a given width and height.
    3. 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
    1. 1Day 1: Learn core definitions (pixel, resolution, colour depth, metadata) and draw small 4x4 binary grids to see pixel mapping in action.
    2. 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).
    3. 3Day 3: Work through multi-step image file size calculation problems, ensuring accurate conversion between bits, bytes, and kibibytes.
    4. 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.
    5. 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)
    Calculate

    Perform mathematical operations using the provided values, showing full working out and stating the answer with the correct unit.

    Explain

    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'.

    State

    Provide a brief, factual point or definition without extended explanation or calculation steps.

    How Students Lose Marks (Examiner Pitfalls)
    Pitfall: Confusing colour depth with image resolution or mixing up bits and bytes during file size calculations.
    ❌ Weak Answer (Loses Marks):The image file size is 100 x 100 x 4 = 40,000 bytes.
    Example improved answer:File size in bits = width x height x colour depth = 100 x 100 x 4 = 40,000 bits. To convert to bytes: 40,000 / 8 = 5,000 bytes (plus additional bytes for metadata).
    Examiner Tip: Always state the units at each step of your working. The default calculation yields bits; remember to divide by 8 if the question specifies bytes or kibibytes.
    Pitfall: Giving a generic definition of metadata such as 'extra data' without stating concrete, image-specific examples.
    ❌ Weak Answer (Loses Marks):Metadata is information about the file that helps it open.
    Example improved answer:Metadata is data about data. In a bitmap image, it includes essential details required by software to reconstruct and display the image correctly, such as image dimensions (width and height in pixels), colour depth, and file format.
    Examiner Tip: Always state at least two specific examples of metadata (e.g. width/height in pixels, colour depth, date created) to secure full marks on descriptive questions.
    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. 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. 2.Step 2: Calculate the total number of pixels: 400 x 300 = 120,000 pixels.
    3. 3.Step 3: Calculate the total size in bits: 120,000 pixels x 4 bits = 480,000 bits.
    4. 4.Step 4: Convert bits to bytes: 480,000 / 8 = 60,000 bytes.
    5. 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.).
    Final Answer: 58.59 KiB (or 60,000 / 1024 KiB)

    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. 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. 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. 3.Step 3: Combine factors to determine the overall file size multiplier: 3 (colour depth) x 4 (dimensions) = 12 times larger.
    4. 4.Step 4: Conclude clearly on quality and file size.
    Final Answer: The file size increases by a factor of 12 (3 x 4). The visual quality significantly improves due to sharper resolution and a vastly expanded palette of over 16.7 million colours.
    Active Recall Memory Test
    What is the formula used to calculate the raw file size of a bitmap image in bits?
    Key Fact: Width in pixels x Height in pixels x Colour depth in bits.
    How many unique colours can be represented using a colour depth of 5 bits?
    Key Fact: 32 colours (calculated as 2^5 = 32).
    Give two examples of metadata stored inside a bitmap image file.
    Key Fact: Image dimensions (width/height) and colour depth (alternatives: file format, date/time created, GPS location).
    What happens to the visual appearance of a bitmap image when it is enlarged significantly?
    Key Fact: It becomes pixelated (individual pixels become visible, causing edges to appear jagged).
    Frequently Asked Questions
    What is the difference between image resolution and colour depth?
    Image resolution refers to the total number of pixels that make up the image, typically expressed as width multiplied by height (e.g. 800 x 600 pixels). Colour depth, measured in bits per pixel (bpp), specifies how much binary data is allocated to encode the colour of each individual pixel. Resolution controls spatial detail and clarity, whereas colour depth controls colour variety and accuracy.
    Why is metadata necessary for an image file?
    Without metadata, a computer displaying an image would only see a continuous stream of binary 1s and 0s without knowing where rows begin and end. The metadata specifies the width and height in pixels, the colour depth, and the encoding format. This enables rendering software to interpret the raw bits into the intended grid structure and assign correct colours.
    Why does increasing colour depth increase file size?
    Colour depth dictates the number of bits stored for every single pixel in the graphic. If you increase colour depth from 8 bits to 24 bits, every single pixel now requires three times as much binary storage. Because total file size is the product of total pixels multiplied by colour depth, any increase in colour depth directly multiplies the overall file size.
    Do image file size calculations include metadata in AQA exams?
    In AQA GCSE Computer Science exams, calculation questions typically focus on the raw data payload using the formula width x height x colour depth, ignoring metadata unless an explicit metadata byte allowance is given in the question. However, examiners frequently ask students to note that the actual file size on disk will be slightly larger due to the addition of metadata.
    How do I know whether to divide by 1000 or 1024 for KiB?
    In Computer Science, the prefix 'kibi-' (KiB) strictly represents binary multiples of 1024 (2^10 bytes). If the exam question asks for KiB or MiB, divide bytes by 1024 or 1,048,576 respectively. If the exam specifies metric units like KB or MB, check the question wording; AQA accepts 1024 for KiB and will clarify whether standard base-10 (1000) or binary base-2 (1024) is expected.