Skip to content
Tutorials Center
My learning

Topics

Lesson 2 of 36 ยท Getting Started

Vector vs Raster Graphics

Understand the difference between vector and raster images, resolution and file size, and learn when to choose each one in Illustrator projects.

Every digital image is either raster or vector (or a mix). Knowing which is which decides how you build a file, how big it gets, and whether it looks crisp on a retina screen or a shop sign. Illustrator is built around vectors, but it also places and exports rasters, so you need both ideas straight.

Raster images

A raster image is a grid of coloured squares called pixels. A photo from a phone, a PNG screenshot and a JPEG are all rasters. The image has a fixed pixel size, for example 4000 x 3000. Enlarge it and the program must invent new pixels, which looks soft or blocky.

Resolution is described in ppi (pixels per inch). A 3000 pixel wide image printed 10 inches wide has 300 ppi, a common target for print.

Vector images

A vector image is a list of paths. Each path has anchor points, the curves between them, and appearance settings such as fill and stroke. Because the file stores instructions, not pixels, you can resize without loss, edit every point, and keep files tiny.

Formats: AI, SVG, EPS, PDF (when it holds vector data).

Vector art is always rasterised at the end. A screen or printer turns your paths into dots or pixels. The advantage is that this happens at the final size, so the result is sharp.

Side by side

Raster Vector
Built from Pixels Paths and points
Scales Loses quality Unlimited
Best for Photos, painting Logos, icons, illustration
File size grows with Pixel count Number of points
Typical formats JPEG, PNG, WebP, TIFF SVG, AI, EPS, PDF
flowchart LR
  A["Need to scale freely?"] -->|Yes| B["Vector (Illustrator)"]
  A -->|No| C["Is it a photo or soft shading?"]
  C -->|Yes| D["Raster (Photoshop)"]
  C -->|No| B

Choosing a format family. Real projects often mix both.

Pixel maths you will use

Two calculations come up constantly: how many pixels you need for a print size, and how large a raster image can be printed before it looks soft.

JS Stand-in: print resolution calculator

Press Run (or Ctrl + Enter) to see the console output here.

No output.

The last loop shows why a photo that looks fine on screen (72 or 96 ppi) can be too small for a poster.

Mixing the two in Illustrator

You can place a raster in Illustrator (File > Place) and either embed it (the pixels live inside the .ai file) or link it (the file stays outside and Illustrator remembers the path). You can also turn a raster into vector shapes with Image Trace, covered later in the course.

The reverse step, turning vectors into pixels, is rasterising (Object > Rasterize). Do it only when you need to: it is a one-way street for editing.

A tiny vector rendering stand-in

To feel the difference, build both representations of a circle.

JS Stand-in: circle as pixels vs as a vector

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Both outputs come from three numbers each. A raster of the big one would need a 33 x 33 grid stored explicitly.

Which should you choose?

  • Logos, icons, type, illustrations, maps: vector.
  • Photographs and painterly textures: raster.
  • A brochure with a photo and a logo: both. Keep the logo as vector and place the photo.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What happens when you enlarge a raster image a lot?

    A raster has a fixed pixel grid, so enlarging it forces the program to guess new pixels.
  2. 2. Which format normally holds vector data?

    SVG stores paths and shapes as text instructions.
  3. 3. How many pixels wide must an image be to print 6 inches wide at 300 ppi?

    6 x 300 = 1800 pixels.
  4. 4. What is the safest way to keep a logo editable inside a poster?

    Vector paths remain editable and scalable; rasterising removes that.

Summary

  • Raster images are pixel grids with a fixed size; vector images are paths that scale freely.
  • Print needs about 300 ppi for rasters; vectors have no ppi until output.
  • Use vector for logos and icons, raster for photographs, and mix them deliberately.
  • You can place, embed, link, trace and rasterise inside Illustrator.

Next: Creating a New Document and Choosing Units