Calculate bitmap image file sizes using resolution, colour depth, and compression. Perfect for GCSE Computer Science exam questions.
Width × Height × Colour Depth ÷ 8Width × Height gives total pixels. Higher resolution = more pixels = larger file.
Bits per pixel. More bits = more colours = larger file. 24-bit = 16.7 million colours.
Divide by 8 to convert from bits to bytes. Computers store data in bytes.
Black and white only
Example: Old fax machines, simple line drawings
Colours: 2
256 different colours
Example: Early computer graphics, GIF images
Colours: 256
65,536 colours
Example: Older digital cameras, some mobile graphics
Colours: 65,536
16.7 million colours
Example: Modern digital photos, web images
Colours: 16,777,216
16.7 million colours + transparency
Example: Modern graphics with transparency
Colours: 4,294,967,296
Multiply the width by height to get total pixels, then multiply by colour depth (bits per pixel), then divide by 8 to convert bits to bytes.
24-bit colour means each pixel uses 24 bits (3 bytes) to store colour information. This gives 2^24 = 16,777,216 possible colours, which is 'true colour'.
Compression removes redundant data. Lossless compression (like PNG) reorganises data efficiently. Lossy compression (like JPEG) removes some detail that humans can't easily see.
Get step-by-step guidance and practice questions with our Computer Science Genie.