KS48525 3.3.5 24 min read 10 question quiz 11 exam marks

Representing Images

How a bitmap stores a picture as numbers, what resolution and colour depth actually control, why metadata is needed, and every step of an image file size calculation.

Bitmap images

A bitmap image is stored as a grid of pixels, and a binary value is recorded for the colour of every single pixel. A photograph is a bitmap, as is a screenshot or a scanned document.

The word bitmap is literal: the file is a map of which bits belong to which position in the grid.

Resolution

Resolution is the number of pixels in the image, given as width by height. An image that is 1920 by 1080 has 1920 times 1080, which is 2073600 pixels.

More pixels means more detail, because there are more separate points at which the picture can change. It also means proportionally more data, since every pixel needs its own colour value.

Resolution is a count, not a size on screen

The same 1920 by 1080 image can fill a wall or a phone screen. What changes is how large each pixel appears, not how many there are.

Colour depth

Colour depth is the number of bits used to store the colour of each pixel. It decides how many different colours a pixel can be, and the relationship is a power of two.

Colour depthColours availableTypical use
1 bit2Black and white line art
4 bit16Very simple icons
8 bit256Old games, indexed images
24 bit16777216Photographs, true colour

In 24 bit colour, 8 bits are given to red, 8 to green and 8 to blue, so each channel has 256 levels and every combination is possible. That is where the value 16.7 million comes from: 256 times 256 times 256.

How a bitmap image is stored, and what decides its sizeAn eight by eight bitmap image of a simple face shown next to the binary that stores it. Each square of the picture is one pixel, and because this image uses one bit per pixel each pixel is either 0 for the background or 1 for the ink. The eight rows of bits are 00111100, 01000010, 10100101, 10000001, 10100101, 10011001, 01000010 and 00111100. Three properties decide the file. Resolution is how many pixels across by how many down, here eight by eight, giving 64 pixels in total. Colour depth is how many bits are stored per pixel: one bit gives two colours, eight bits gives 256 colours and 24 bits gives about 16.7 million. Metadata is the extra information stored with the image, such as width, height, colour depth and date, so that software can open it correctly. File size in bits equals width times height times colour depth, plus the metadata.An 8 by 8 image, one bit per pixelthe picture0 0 1 1 1 1 0 00 1 0 0 0 0 1 01 0 1 0 0 1 0 11 0 0 0 0 0 0 11 0 1 0 0 1 0 11 0 0 1 1 0 0 10 1 0 0 0 0 1 00 0 1 1 1 1 0 0the same thing, stored as bitsResolutionhow many pixels across by how manydown. Here 8 x 8, so 64 pixels.Colour depthbits per pixel. 1 bit gives 2 colours,8 gives 256, 24 gives 16.7 million.Metadatawidth, height, colour depth, date,so the file can be opened correctly.file size in bits = width x height x colour depth, then add the metadata
Increasing colour depth by one bit doubles the number of available colours and adds one bit to every single pixel.
How a bitmap image is stored: a grid of pixels, each three numbersHow a bitmap image is stored. The image is a grid of pixels, and this one is eight by eight, so sixty four pixels in total. Every pixel holds one colour, and that colour is stored as three numbers: how much red, how much green and how much blue. In 24 bit colour each of those three numbers gets eight bits, so one pixel costs 8 plus 8 plus 8, which is 24 bits or 3 bytes. The colour depth is simply how many bits each pixel gets. The file size in bits is the width times the height times the colour depth: for this image 8 times 8 times 24 is 1,536 bits, and dividing by 8 gives 192 bytes.8 pixels wide8 tall: 64 pixels in allone pixelR24011110000G10301100111B91010110113 numbers × 8 bits = 24 bits = 3 bytesFile size in bits8width×8height×24colour depth= 1,536 bits, and ÷ 8 = 192 bytes1234
  1. A bitmap is a grid of pixels. This one is 8 by 8, so 64 of them.
  2. Pick one pixel. Its colour is three numbers: red, green and blue.
  3. Each number is 8 bits, so one pixel costs 24 bits, which is 3 bytes.
  4. File size = width × height × colour depth. That is the whole formula.
Width times height times colour depth gives bits. Divide by 8 for bytes. Every image file size question is that line and nothing more.

Metadata

Metadata is data about the data. An image file cannot be opened correctly without it, because the raw pixel values alone do not say how they are arranged.

An image file typically stores:

  • the width and height in pixels, so software knows where each row ends,
  • the colour depth, so it knows how many bits belong to each pixel,
  • the file format,
  • and often the date, the camera settings, and the location the photograph was taken.
Why metadata is essential, in one sentence

Without the width, a run of colour values is just a list. The width is what turns it back into a rectangle, so software cannot reconstruct the image without it.

The extra metadata raises privacy questions worth knowing about. A photograph taken on a phone commonly records the exact location and time, and those travel with the file when it is shared.

A photograph and the metadata stored with itAn image file holds more than the pixels. Metadata is data about the data: it is stored in the file but it is not part of the picture. Some metadata is needed to rebuild and show the image: the width and height in pixels, here 4032 by 3024, the colour depth, here 24 bits, and the file type, here JPEG. Other metadata is extra information: the date and time the photo was taken, the device, the resolution in pixels per inch, and the GPS location, here 51.50 north, 0.12 west. Without the width, height and colour depth the computer would not know how to turn the stream of bits back into a grid of pixels. The extra information can be a privacy risk, because a photo shared online can reveal where it was taken.IMG_0412.jpgthe pixels you seeMetadata: data about the dataneeded to show the pictureWidth4032 pxHeight3024 pxColour depth24 bitsFile typeJPEGextra informationDate taken14 Jun 2026 09:41DevicesmartphoneLocation51.50 N, 0.12 WResolution300 ppiFile size = width × height × colour depth, plus a little for the metadata.123
  1. The picture is a grid of pixels, stored as one long stream of bits.
  2. Metadata that must be stored: width, height and colour depth. Without them the bits cannot be turned back into the picture.
  3. Extra metadata such as date, device and GPS location is useful, but sharing it can be a privacy risk.
Metadata is data about the data. It is not part of the picture, but the file would not open properly without the key parts.

Calculating image file size

The formula AQA expects is:

file size in bits = width in pixels x height in pixels x colour depth

Then convert: divide by 8 for bytes, then by 1000 for each unit upwards, since AQA uses 1000.

A worked example

An image is 800 by 600 pixels with a colour depth of 24 bits.

pixels        = 800 x 600            = 480 000
size in bits  = 480 000 x 24         = 11 520 000 bits
size in bytes = 11 520 000 / 8       = 1 440 000 bytes
size in kB    = 1 440 000 / 1000     = 1 440 kB
size in MB    = 1 440 / 1000         = 1.44 MB

If the question gives a metadata size, add it after converting it to the same unit. Metadata is usually given in bytes, so convert your image data to bytes first and then add.

Show every line

There are method marks for the multiplication and for each conversion. A single number on the page, even a correct one, risks losing them if it is not the exact answer expected.

Why the size grows so fast

Doubling the width and the height gives four times as many pixels, so four times the file size. Adding one bit of colour depth adds one bit to every pixel in the image. Both explain why raw uncompressed images are so large, and why compression matters.

File size calculator

Work out the size of an image, a sound file or a block of text, one conversion at a time. This tool needs JavaScript, so turn it on to use it. Everything you need to answer the exam question is explained in the text above.

Key terms you must be able to define

Bitmap
An image stored as a grid of pixels, with a colour value recorded for every pixel.
Pixel
The smallest individual element of a bitmap image, holding one colour value.
Resolution
The number of pixels in an image, given as width by height.
Colour depth
The number of bits used to store the colour of each pixel.
Metadata
Data about the file itself, such as its width, height, colour depth and date.
True colour
24 bit colour, giving 8 bits each to red, green and blue and around 16.7 million colours.

Flashcards

Say the definition out loud before you flip the card. Retrieving it from memory is what builds recall, reading it again is not.

DefineBitmap
AnswerAn image stored as a grid of pixels, with a colour value recorded for every pixel.
DefinePixel
AnswerThe smallest individual element of a bitmap image, holding one colour value.
DefineResolution
AnswerThe number of pixels in an image, given as width by height.
DefineColour depth
AnswerThe number of bits used to store the colour of each pixel.
DefineMetadata
AnswerData about the file itself, such as its width, height, colour depth and date.
DefineTrue colour
Answer24 bit colour, giving 8 bits each to red, green and blue and around 16.7 million colours.

Reach the top grade on this topic

Two things earn the last marks on this topic.

Explaining size in terms of every pixel. Increasing colour depth by one bit does not add one bit to the file, it adds one bit to every single pixel. Answers that say so are giving the mechanism rather than the fact.

Being precise about metadata. The strong answer names a specific item and says what would break without it: without the width, software cannot know where each row of pixels ends and the image cannot be reconstructed.

Keeping units visible. Write "bits" and "bytes" beside your numbers as you go. Most lost marks in this topic are a missing division by eight, and labelling the units makes the omission obvious to you before it is obvious to the examiner.

Mistakes that cost marks here

Avoid these
  • Giving the answer in bits when the question asked for bytes, or the reverse.
  • Forgetting to add the metadata when the question supplies a size for it.
  • Confusing resolution with the physical size of the image on screen.
  • Saying a higher colour depth means more pixels. It means more bits per pixel.
  • Using 1024 rather than 1000 when converting units for AQA.
Fun fact

The very first digital image was made in 1957 by Russell Kirsch, who scanned a photograph of his baby son at 176 by 176 pixels. The square pixel, which we are still using, was his practical choice at the time and he later called it a mistake.

Knowledge check

0 of 10 answered
1What does colour depth control?
2How many colours can be represented with a colour depth of 4 bits?
3An image is 400 by 300 pixels with a colour depth of 8 bits. What is its size in bits?
4Why does an image file need to store its width as metadata?
5What happens to the file size if the colour depth is increased from 8 bits to 16 bits?
6An image of 2 megabytes is described as 1000 by 500 pixels. What is the colour depth, using 1 kB as 1000 bytes?
7What is a pixel?
8Doubling both the width and the height of an image has what effect on its file size?
9Which of these is metadata rather than image data?
10Why can sharing a photograph raise a privacy concern even if the picture itself is harmless?
Score 0 / 10

Exam-style questions

Five written questions in the style of the real paper. Write a full answer, then let the marker check it against the mark scheme.

11 marks
1State what is meant by the resolution of an image.1 mark
State

Mark scheme0 / 1
  • LThe number of pixels in the image, given as width by height
Model answer

The resolution of an image is the number of pixels it contains, expressed as the width in pixels multiplied by the height in pixels.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
2An image is 640 pixels wide, 480 pixels high and uses a colour depth of 24 bits. Calculate the file size in kilobytes, using 1 kilobyte as 1000 bytes. Show your working.4 marks
Calculate

Mark scheme0 / 4
  • LMultiplies width by height to get the number of pixels
  • LMultiplies by the colour depth to get the size in bits
  • LDivides by 8 to get bytes
  • LDivides by 1000 to give 921.6 kB
Model answer

The number of pixels is 640 multiplied by 480, which is 307200. Each pixel needs 24 bits, so the image data is 307200 multiplied by 24, which is 7372800 bits. Dividing by 8 gives 921600 bytes, and dividing by 1000 gives 921.6 kilobytes.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
3Explain why increasing the colour depth of an image increases its file size.3 marks
Explain

Mark scheme0 / 3
  • LColour depth is the number of bits stored for each pixel
  • LIncreasing it adds bits to every pixel in the image, not just to some
  • LSo the total number of bits, and therefore the file size, increases in proportion
Model answer

Colour depth is the number of bits used to store the colour of each individual pixel. Increasing the colour depth therefore adds those extra bits to every single pixel in the image rather than to the file as a whole, so an image containing two million pixels gains two million extra bits for each extra bit of colour depth. Since the file size is the number of pixels multiplied by the colour depth, raising the depth raises the size in direct proportion.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
4Explain why metadata must be stored with an image file.3 marks
Explain

Mark scheme0 / 3
  • LThe pixel data on its own is just a sequence of values
  • LThe width and height tell software how the pixels are arranged into a grid
  • LThe colour depth tells software how many bits belong to each pixel
Model answer

Stored on its own, the pixel data is only a long sequence of binary values with nothing to say how they should be arranged. The metadata supplies that missing information. The width tells the software where one row of pixels ends and the next begins, which is what turns the sequence back into a rectangle, and the height confirms how many rows there should be. The colour depth tells the software how many bits belong to each pixel, without which it cannot divide the sequence into pixels at all. Without metadata the same file could be read as a completely different picture.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
Machine mark 0 / 11