Vector graphics

On this page 7

Vector graphics are images described as mathematical geometry, such as points, lines, curves and shapes with fill and stroke attributes, rather than as a fixed grid of pixels. Because the description is resolution-independent, a vector image can be scaled to any size without losing sharpness, from a 16 px icon to a building-sized banner.

In graphic design, vector graphics are the standard format for logos, icons, typography, illustrations and technical drawings, where crisp edges and editability matter more than photographic detail. They stand in direct contrast to raster graphics, which store an image as colored pixels and suit photographs and painterly textures.

How vector graphics describe an image

A vector image is a set of objects defined by coordinates. The basic building block is the path: a sequence of anchor points connected by straight segments or curves. Most design tools use cubic Bézier curves, where each segment is controlled by two anchor points and two control handles that set the direction and tension of the curve.

Each path carries appearance attributes: fill color or gradient, stroke color, stroke width, line caps, joins and opacity. Objects are stacked in a defined order, grouped, and combined with clipping paths and masks to hide or reveal parts of other objects. When the image is displayed, a renderer rasterizes this description into pixels at the exact resolution of the output device.

The table below lists the core components found in nearly every vector format.

ComponentWhat it definesExample
Anchor pointA fixed coordinate on a pathThe corner of a square
Bézier handleDirection and tension of a curveThe roundness of a letter’s bowl
PathConnected segments, open or closedAn outline of a leaf
Fill and strokeInterior color and outline styleBlue fill with a 2 px black stroke
Group and layerOrganization and stacking orderIcon parts grouped as one object
Clipping path and maskVisible area of other objectsA photo clipped to a circle
Core components of a vector image

Vector and raster graphics compared

Vector and raster graphics solve different representation problems. Raster images record color values for every pixel and are ideal for continuous-tone content such as photographs. Vector images record instructions for drawing shapes, which makes them compact and infinitely scalable but poorly suited to complex natural textures.

PropertyVector graphicsRaster graphics
Data modelGeometric objects and attributesGrid of colored pixels
ScalingSharp at any sizeBlurs or pixelates when enlarged
File sizeDepends on object complexityDepends on pixel dimensions and compression
EditingShapes, colors and text stay editableEdits change pixels directly
Best contentLogos, icons, type, diagramsPhotographs, scans, textured artwork
Typical formatsSVG, AI, EPS, PDFJPEG, PNG, WebP, TIFF
Vector graphics versus raster graphics

Many real files are hybrids. A PDF can contain vector text and shapes alongside embedded photographs, and an SVG can include raster images. Converting raster to vector through auto-tracing is possible but only approximates the original, while converting vector to raster is exact for a chosen resolution but loses editability.

Vector file formats and their roles

Vector formats differ in purpose, openness and feature support. Choosing the right format depends on whether the file will be edited, printed, sent to a cutting machine or displayed on the web.

FormatNatureMain useNotes
SVGOpen XML-based W3C standardWeb graphics, icons, interface assetsStyleable with CSS and scriptable
PDFOpen ISO page description formatPrint production, document exchangePDF/X variants for press-ready files
EPSLegacy PostScript-based formatOlder print and stock workflowsLargely superseded by PDF
AIProprietary editing formatWorking files in Adobe IllustratorBest kept as the editable master
DXFCAD exchange formatLaser cutting, engraving, CNCPaths matter, colors often ignored
Common vector graphics formats

For digital products, SVG is the default choice because browsers render it natively, it compresses well with gzip or Brotli, and it can adapt to themes through currentColor and CSS variables. Print workflows rely on PDF, where vector content and embedded fonts survive to the imagesetter unchanged.

Where vector graphics work best

Vector graphics are the right choice whenever an image must stay sharp across many sizes or remain editable over time. A logo that appears on a business card, a website header and a trade-show banner should exist as one vector master from which all outputs are produced.

  • Logos and brand marks, which need exact reproduction in every medium and color variant.
  • Icon systems for interfaces, where one source scales cleanly across screen densities.
  • Typography, since digital fonts store glyph outlines as vector curves.
  • Infographics, maps and diagrams, where lines and labels must remain crisp.
  • Signage, vinyl cutting and engraving, where machines follow paths rather than pixels.

The same flexibility makes vectors efficient for responsive interfaces: a single SVG icon replaces several PNG exports for 1x, 2x and 3x displays and usually weighs only a few hundred bytes to a few kilobytes.

Limitations and common mistakes

Resolution independence does not guarantee quality at every size. Fine details in a large illustration can disappear or clump together at icon size, which is why professional icon sets are often drawn separately for small sizes and aligned to the pixel grid to avoid blurry anti-aliased edges.

ProblemCauseFix
Bloated SVG filesExcess anchor points, editor metadataSimplify paths and optimize the export
Blurry small iconsShapes fall between pixelsAlign key edges to the pixel grid
Missing fonts in printText not embedded or outlinedEmbed fonts or convert type to outlines
Strokes scaling unexpectedlyStroke widths tied to object scaleExpand strokes or set non-scaling strokes
Slow renderingThousands of paths, heavy filtersFlatten complex effects or use raster for textures
Typical vector graphics problems and fixes

Another frequent error is auto-tracing a low-resolution logo and treating the result as a finished vector master. Tracing produces irregular curves and too many points; a clean master should be redrawn manually with deliberate geometry.

A non-technical view

A vector graphic is a picture stored as drawing instructions instead of dots. Rather than saying which tiny squares are which color, the file says something like: draw a circle here, this big, and fill it with red.

Because the computer redraws the shapes every time, the picture can be made bigger or smaller and the edges always stay sharp. That is why logos and icons are usually made this way, while photographs, full of subtle detail, are stored as pixels.

A concrete example

A small coffee roastery asks a designer to refresh its logo. The only existing file is a 400 px JPEG taken from the old website, which looks pixelated when printed on 1-meter coffee sacks and soft on the new delivery van.

The designer redraws the mark as vector paths in an illustration tool, builds the wordmark from a licensed typeface converted to outlines, and defines exact brand colors. From this single master she exports an SVG for the website, a press-ready PDF/X file for packaging and a DXF file for laser-engraved wooden signage.

The roastery now uses one source file for every application. The logo looks equally sharp on a 24 px browser tab icon and a 3-meter van panel, and future color variants take minutes instead of a redesign.