Graphic Design & Digital Media · Foundations
Raster versus Vector
On this page 9 sections
In 30 seconds
A digital picture is stored one of two ways. A raster (bitmap) image is a fixed grid of colored pixels: it captures photographs beautifully but is Resolution-dependent Describes an image whose quality is tied to a fixed pixel count, so it degrades when enlarged beyond its native dimensions. Full entry →, so enlarging it past its Pixel The smallest element of a raster image: a single cell in the grid carrying one color value. Full entry → count turns crisp edges into blur or blocks. A Vector graphic An image stored as mathematical shapes—anchor points, paths, and curves with fill and stroke—rather than as pixels. Full entry → stores shapes as math—points, paths, and Bezier curves—so software re-renders it sharply at any size. Vectors suit logos, icons, and type; rasters suit photos.
Why this matters
Nearly every design decision starts with this fork. Save a logo as a raster and it pixelates the moment someone scales it to a billboard; force a photograph into vectors and it cannot hold the continuous tones a camera records. Knowing which model a file uses tells you whether it will survive enlargement, roughly how large the file will be, and which format to export. It also underlies later topics: image resolution, file formats, and print production all assume you can already tell a grid of pixels from a set of mathematical paths.
The college version
Two ways to store a picture
Every digital image is encoded in one of two fundamentally different ways, and the encoding—not the subject—determines what you can do with the file. A raster image, also called a bitmap, is a rectangular grid of tiny colored squares called pixels. Each pixel holds one color value, and the picture emerges from the mosaic of the whole grid, the way a photo does when you zoom in far enough to see the individual dots. The W3C's PNG specification defines a raster image precisely as a rectangular array of pixels. Because the grid is fixed the moment the file is made, a raster image has a set number of pixels and therefore a native size at which it looks its best.
A vector graphic stores no pixels at all. Instead it records shapes as mathematics: anchor points at specific coordinates, the straight or curved paths that connect them, and instructions for fill and stroke color. The curves are usually Bezier curves, defined by anchor points and control handles that set how the line bends. The W3C names this model in the title of its standard—SVG stands for Scalable Vector Graphics—and defines its content as vector graphic shapes such as paths consisting of straight lines and curves. When you open a vector file, software reads the math and draws the shapes fresh; nothing in the file commits it to a particular pixel count.
Why one scales and the other cannot
The consequence of that difference is scalability. A vector shape is Resolution-independent Describes an image defined by math that can be re-rendered at any size without loss of quality. Full entry →: the stored description is effectively 'a circle of this radius centered here, filled with this color,' so the renderer can redraw it at postage-stamp size or billboard size and the edges stay mathematically exact. Enlarging costs nothing in quality because the picture is recomputed, not stretched. This is the same reason outline fonts—which store each glyph as points and Bezier curves—print crisply on a low-resolution laser printer and a high-resolution imagesetter alike: the outline is re-rendered at whatever resolution the device offers.
A raster image is resolution-dependent, and that is a hard limit rather than a quality setting. The file contains a specific number of pixels; when you enlarge it beyond those dimensions, the software must invent color values for pixels that were never captured. It can only guess by interpolating from neighbors, which smears detail into blur or, without smoothing, into visible blocks. The BCcampus print-production text puts it bluntly about the raster image processor that drives print devices: it does not do a good job of interpolating more data to produce additional detail in a photo or shape if that information is missing to begin with. You cannot add detail a raster never recorded. Shrinking a raster is safe—you are discarding data—but enlarging past its native dimensions is where quality collapses.
Choosing the right model
Match the model to the content. Photographs and other continuous-tone images—anything with subtle gradations of light, shadow, and texture—are naturally raster, because a camera sensor samples the scene into millions of pixels and there is no small set of shapes that would describe a human face. Raster is also the model for painted digital art and any effect built up pixel by pixel. Its costs are that files grow with pixel count and that the image cannot be enlarged past its capture resolution.
Flat, hard-edged artwork is the domain of vector: logos, icons, symbols, type set as outlines, maps, diagrams, and line art. A logo must look identical on a business card and on the side of a truck, so it has to be resolution-independent, which forces it to be vector. Vector files for such art are also usually small, because 'a circle and two paths' is far less data than a grid of thousands of pixels, and each shape stays individually editable. Vector's weakness is the mirror image of raster's strength: it cannot represent a photograph's continuous tone, because doing so would demand an unmanageable number of tiny shapes. So the working rule is simple—continuous tone means raster, scalable flat art means vector—and most real projects, a photo inside a logo-topped layout, end up using both.
Converting between them, and where the formats live
The two models convert, but not symmetrically. Turning a vector into a raster is called rasterizing: the software picks a resolution and renders the math into a fixed pixel grid—exactly what a raster image processor does when it converts a page of vector outlines into the dot pattern a printer lays down. Rasterizing is routine and clean at the chosen size, but the result is now a raster and inherits every raster limitation. Going the other way is harder. Converting a raster to vector, called tracing, asks software to guess the shapes hidden in the pixels; it works acceptably for simple, high-contrast art but throws away the fine gradations of a photograph, so a traced photo looks like a poster reduction rather than the original.
Which specific file you save depends on the model. Common raster formats include JPEG, PNG, GIF, and TIFF; common vector formats include SVG, EPS, and AI, while PDF can carry both. The detailed catalog of what each format compresses, preserves, and is best for belongs to the File Formats topic; here the point is only that a format is downstream of the model—you first decide raster or vector, and the sensible format follows. Likewise, exactly how many pixels per inch a raster needs for a given print or screen size is the province of Image Resolution; this topic settles only the prior question of which of the two kinds of image you are holding.

Eli explains
The same idea, in plain words
Explain it like I’m 10
Imagine two ways to keep a drawing of a star. The first way is a sheet of graph paper where you color in squares to make the star shape—that's a raster image, and the star is only as smooth as your squares are small. Blow the paper up on a photocopier and the squares get bigger, so the edges look chunky. The second way is a written instruction: 'a five-pointed star, this wide, this color.' That's a vector. Hand that instruction to anyone and they can redraw the star at any size, always smooth, because they are following the recipe instead of copying colored squares. Photos have to use the graph-paper way, because there is no short recipe for every freckle and shadow. Logos use the recipe way, so they stay sharp whether they sit on a phone screen or a stadium banner.
Picture it like this
A raster image is a mosaic made of fixed tiles; a vector graphic is the blueprint that tells you how to lay the tiles at any size.
Where the picture stops working
The blueprint idea suggests you could always write a blueprint for any picture, but you cannot practically describe a photograph as a compact set of shapes—the tiles (pixels) are the only workable way to store continuous tone, which is exactly why photos stay raster.
Worked example
A studio designs a logo as vector art. On business cards it prints at a few centimeters; scaled up for a storefront sign three meters wide, it renders just as crisply, because the software recomputes the paths at the larger size—there are no pixels to stretch. The team also has a product photo, a raster JPEG that is 1,500 pixels wide. Dropped onto the same three-meter sign, those 1,500 pixels must cover a huge area, so each one balloons into a visible block and the photo turns soft and stair-stepped. The fix is not to enlarge the small raster but to re-shoot or re-export the photo at higher pixel dimensions; the logo needed no such fix because a vector carries no fixed resolution.
Key takeaway
Raster stores a fixed grid of pixels—great for photographs but degrading when enlarged; vector stores shapes as math—infinitely scalable and ideal for logos, icons, and type. Choose the model by the content and the sizes you will need.
Quick check
3 questions here, of 5 in this lesson’s practice set. Answers stay hidden until you check.
Why can a vector logo be enlarged to almost any size without losing sharpness?
A designer enlarges a 600-pixel-wide photo to fill a large banner. What is the most likely result, and why?
Study tools & related lessonsYou’ll learn to · Common mistakes · Easily confused · Key vocabulary · Related
You’ll learn to
- Define raster (bitmap) and vector images by how each stores picture data.
- Explain why vector graphics scale losslessly while raster images degrade when enlarged.
- Distinguish the tasks each model suits, from photographs to logos and line art.
- Apply the distinction to choose a model and predict what happens when a file is scaled or converted.
Common mistakes
Believing you can restore sharpness to a small, blurry raster by enlarging it and raising its resolution setting.
Enlarging cannot add detail that was never captured; interpolation only guesses at missing pixels. You must obtain the image at higher pixel dimensions from the original source.
Saving a logo only as a JPEG or PNG and treating that as the master file.
Those are raster formats with a fixed size. Keep the master as vector (for example SVG, EPS, or AI) so it scales to any use, and export rasters only when a specific size is needed.
Assuming a vector file can hold a photograph well.
Photographs are continuous-tone and need pixels; forcing them into vectors by tracing discards the gradations and leaves a flat, posterized result.
Confusing file size with resolution or image quality.
A vector logo can be tiny in bytes yet print huge; a raster's byte size grows with its pixel count, which is a separate question from whether the picture looks good at a given size.
Thinking 'raster' and 'vector' are names of file formats.
They name how an image is stored. Formats like SVG or JPEG are the downstream choice, and some formats such as PDF can hold both kinds.
Easily confused
Raster (bitmap) image vs. Vector graphic
Raster stores a fixed grid of pixels and is resolution-dependent; vector stores mathematical shapes and is resolution-independent.
Enlarging a raster vs. Enlarging a vector
Enlarging a raster stretches existing pixels and must invent missing ones, causing blur or blocks; enlarging a vector recomputes the shapes and stays sharp.
Best for photographs vs. Best for logos and line art
Continuous-tone photos need the per-pixel sampling of raster; flat, hard-edged art that must scale to many sizes needs vector.
Key vocabulary
- Raster image (bitmap)
- An image stored as a rectangular grid of pixels, each holding one color value; the picture is the whole mosaic of the grid.
- Vector graphic
- An image stored as mathematical shapes—anchor points, paths, and curves with fill and stroke—rather than as pixels.
- Pixel
- The smallest element of a raster image: a single cell in the grid carrying one color value.
- Path
- A line or shape in a vector graphic defined by connected anchor points and the straight or curved segments between them.
- Bezier curve
- A curve defined by anchor points and control handles that determine how it bends; the standard way vector software draws smooth curves.
- Resolution-dependent
- Describes an image whose quality is tied to a fixed pixel count, so it degrades when enlarged beyond its native dimensions.
- Resolution-independent
- Describes an image defined by math that can be re-rendered at any size without loss of quality.
- Rasterize
- To convert a vector graphic into a raster image by rendering its shapes into a fixed grid of pixels at a chosen resolution.
Sources & references
- Graphic Design and Print Production Fundamentals — BCcampus / Graphic Communications Open Textbook Collective (Ken Jeffery, Alan Martin, Roberto Medeiros, Steve Tomljanovic)
- Scalable Vector Graphics (SVG) 1.1 (Second Edition), Introduction — World Wide Web Consortium (W3C)
- Portable Network Graphics (PNG) Specification (Third Edition) — World Wide Web Consortium (W3C)
EliExplains lessons are original prose written from the open, credible references above. See Copyright & Licensing.
Researched 2026-08-19
Educational content only. It is not medical, legal or professional advice. Found an error? Tell us.

