Ez Computerहिन्दीOpen app

Deep Dive 6 — Image Formats and How They Evolved

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
Image formats Raster vs vector Raster: grid of pixels Vector: always sharp SVG is vector Colour 1 bit = 2 colours 24-bit = 16.7 million Alpha = transparency Compression Lossless: exact copy Lossy: detail removed Re-saving adds loss Size maths W × H × bytes per pixel Ratio = raw ÷ file Print: pixels ÷ PPI Formats GIF: 256 colours max PNG: lossless, alpha JPEG: photos, lossy Choosing Photo: JPEG or WebP Logo: SVG or PNG Scan or print: TIFF
Chapter 44 at a glance Recall: raster or vector, colour bits, lossless or lossy, the size formula and the right format.

44.1 Raster vs Vector

Raster: a grid of pixels Vector: a rule for shape Enlarge: pixels blur, curves stay sharp
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:

⚡ 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:

  1. 44.1 Raster vs Vector
  2. 44.2 Colour Depth and Transparency
  3. 44.3 Lossless vs Lossy Compression
  4. 44.4 File-Size Maths for Images
  5. 44.5 The Main Formats at a Glance
  6. 44.6 A Short History
  7. 44.7 Choosing the Right Format
  8. 44.8 How to Read an Image’s Specifications
  9. Chapter Quick Revision
  10. Most Important Terms
  11. Common Confusions
  12. Rapid Recall

Sample questions from this chapter

1. Format that stays sharp when enlarged?

  1. JPEG
  2. PNG
  3. SVG
  4. 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?

  1. 2001
  2. 1987
  3. 1992
  4. 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?

  1. HEIC
  2. PNG
  3. WebP
  4. 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?

  1. RAW
  2. SVG
  3. PNG
  4. 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?

  1. Raster image
  2. Vector image
  3. Colour depth
  4. 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.