Preview Part K: Deep Dive · Chapter 44 · 10 min read · 20 practice questions
After this chapter you will be able to
tell raster images from vector images and give examples of each
explain colour depth, transparency and the alpha channel
distinguish lossless from lossy compression
calculate the uncompressed size of an image from its dimensions
match common image formats with their history and typical uses
read an image’s properties and judge its compression
Chapter 44 at a glanceRecall: raster or vector, colour bits, lossless or lossy, the size formula and the right format.
44.1 Raster vs Vector
Raster vs vector: what happens when you enlarge A raster image is a grid of pixels and blurs when enlarged. A vector image is a set of shape rules and stays sharp.
Every digital image is either raster or vector. The difference decides how an image behaves when you enlarge it.
Feature
Raster (bitmap)
Vector
How it stores the image
A grid of pixels, each with a colour
Mathematical shapes: points, lines, curves and fills
Enlarging
Gets blocky or blurry beyond its native size
Stays sharp at any size
File size
Grows with pixel count
Usually small for simple drawings
Typical use
Photographs, screenshots, scanned pages
Logos, icons, diagrams, fonts, maps
Examples
JPEG, PNG, GIF, BMP, TIFF
SVG, EPS, AI (Adobe Illustrator)
⚠ COMMON CONFUSION — A pixel is one dot of a raster image. A vector is a rule for drawing a shape. Scaling a raster image adds no detail; scaling a vector image redraws it.
44.2 Colour Depth and Transparency
Colour depth (or bit depth) is the number of bits used to store the colour of one pixel.
In a 24-bit RGB image, each pixel has three channels: Red, Green and Blue. Each channel gets 8 bits, so each channel has 2⁸ = 256 levels.
Bits per pixel
Distinct colours
Typical use
1
2 (black and white)
Scanned text, fax
4
16
Old PC graphics
8
256
GIF; greyscale images
16
65,536
High-colour displays, some scans
24
16,777,216 (2²⁴)
Standard photographs (RGB)
32
16,777,216 colours plus an 8-bit alpha channel
Images with transparency (RGBA)
Transparency is stored in the alpha channel. In an 8-bit alpha channel:
0 = fully transparent (you see the background)
255 = fully opaque
Values in between give soft, semi-transparent edges.
⚡ QUICK FACT — 24-bit colour is often called True Colour. It can show about 16.8 million colours, enough for realistic photographs.
What the full chapter covers
The full chapter has these sections:
44.1 Raster vs Vector
44.2 Colour Depth and Transparency
44.3 Lossless vs Lossy Compression
44.4 File-Size Maths for Images
44.5 The Main Formats at a Glance
44.6 A Short History
44.7 Choosing the Right Format
44.8 How to Read an Image’s Specifications
Chapter Quick Revision
Most Important Terms
Common Confusions
Rapid Recall
Sample questions from this chapter
1. Format that stays sharp when enlarged?
JPEG
PNG
SVG
GIF
Show answer
Answer: C. SVG
SVG (Scalable Vector Graphics) stores shapes as text rules, so it stays sharp at any size.
2. Year the JPEG standard was finalised?
2001
1987
1992
1996
Show answer
Answer: C. 1992
The JPEG standard was finalised in 1992; it is a lossy format built for photographs.
3. Default photo format on iPhones from iOS 11?
HEIC
PNG
WebP
JPEG
Show answer
Answer: A. HEIC
HEIC has been the default photo format on Apple iPhones since iOS 11 (2017).
4. Unprocessed camera sensor format?
RAW
SVG
PNG
PSD
Show answer
Answer: A. RAW
RAW holds unprocessed data straight from the camera sensor, for editing later.
5. Image made of a grid of pixels?
Raster image
Vector image
Colour depth
Alpha channel
Show answer
Answer: A. Raster image
A raster image is a grid of pixels, each with its own colour; it blurs or blocks when enlarged.