GCSE · Computer Science · OCR · Spec J277
Colour depth and resolution
Shrink a picture on your screen and its file doesn't shrink. Weird, right? Let's build a tiny picture and count the bits to see why.
Computer Science · Representing images
Every pixel costs the same
This picture is 6 pixels across and 4 pixels down, so its resolution is 6 × 4: 24 pixels in all. Every pixel holds a 2-bit code (00 cream, 01 navy, 10 red, 11 yellow), so the colour depth is 2 bits per pixel. Repaint as many squares as you like and keep an eye on the file size.
Work it out: a 600 × 400 image at 16 bits
Start with the resolution. 600 pixels across and 400 down is 240,000 squares in all. Same resolution, written two ways: 600 × 400, or just 240,000.
Computer Science · Choosing settings
Does this job need high settings?
Sort each use: can lower resolution and colour depth be suitable, or is higher quality needed?
Still to sort
Lower settings can be suitable (0)
The smaller file is worth the lower quality
Where the line is: A low resolution or colour depth does not necessarily make an image unusable. It depends on the purpose.
Higher quality needed (0)
The quality is worth the bigger file
Where the line is: Higher resolution and colour depth improve quality but also increase the file size, so you accept a bigger file to get the quality.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Every pixel costs the same number of bits, so a picture's file size comes down to one multiplication.
What you need to know
- A bitmap image has two properties: resolution and colour depth.
- Resolution is the number of pixels across multiplied by the number of pixels down, like 30 × 20.
- Resolution can also be given as a total number of pixels: 30 × 20 is 600 pixels.
Have a goYour friend says an image 5 pixels across and 4 pixels down has a resolution of 9 pixels in total, because 5 + 4 = 9. What would you tell them?
It is 5 × 4 = 20 pixels in total.
Pixels fill a grid, so the across and down counts are multiplied, not added.
- Colour depth is the number of bits used for each pixel to represent its colour.
- File size in bits is the resolution multiplied by the colour depth.
Have a goA tiny image has 10 pixels in total and every pixel uses 3 bits. How many bits is the whole file?
30 bits.
File size in bits is resolution × colour depth, so 10 × 3. Every pixel costs the same 3 bits.
- Bits to bytes: divide by 8. In this lesson, bytes to kilobytes: divide by 1,000.
- Turn the rule round to find resolution: file size in bits divided by colour depth.
- Raise the resolution or the colour depth and the file size goes up.
Have a goSame image, same pixels, but the colour depth is doubled from 2 bits to 4 bits. Predict what happens to the file size before you reveal.
The file size doubles.
Resolution × colour depth: double one factor and leave the other alone, and the result doubles.
- Making the picture smaller on screen does not change the file size.
- Higher quality costs file size, so choosing settings is a trade-off that depends on the purpose.
The big picture
A bitmap image has two properties. Resolution is the pixels across by the pixels down, written as dimensions like 600 × 400 or as a total like 240,000. Colour depth is the bits used for each pixel. File size in bits is resolution × colour depth; divide by 8 for bytes. Raising either property increases the file size, but shrinking the picture on screen does not. Higher quality costs file size, so the settings are a trade-off that depends on the purpose.
Key points
Worked example
Problem
Image A is 100 pixels across and 100 down, with a colour depth of 8 bits. Image B is 200 pixels across and 200 down, with a colour depth of 2 bits. Which has the larger file size?
⚠ Watch out
Dividing a file size in bytes by the colour depth. Colour depth is in bits per pixel, so change the bytes into bits (× 8) first, then divide.
Memory hook
Count the squares, then count the bits in each square. Pixels × bits.
Check yourself
A picture is 8 × 5 pixels with a colour depth of 4 bits. What is its file size in bits? What happens to it if you shrink the picture on screen?
Flashcards
(14)What two properties does a bitmap image have?
What is resolution?
Two ways of giving a resolution?
What is colour depth?
How do you work out the file size of a bitmap image in bits?
How do you change bits into bytes?
How do you change bytes into kilobytes in this lesson?
How do you find the resolution from a file size?
What happens to the file size if you increase the resolution? And the colour depth?
Does making a picture smaller on screen make its file smaller?
What is a trade-off?
What is the trade-off with higher resolution and colour depth?
Does a low resolution or colour depth always make an image unusable?
Which uses can suit lower settings, and which need higher quality?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore OCR GCSE Computer Science topics
- Binary representation of characters
- Binary shifts
- Binary to hexadecimal conversion
- Bitmap images: pixels and binary
- Cache (primary storage context)
- Character set
- Data capacity calculations
- Denary to binary conversion (8-bit)
- Denary to hexadecimal conversion
- Image metadata
- Larger units: KB, MB, GB, TB, PB
- Lossless compression
How this lesson was checked. This OCR GCSE Computer Science (specification J277)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 14 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.