Try a little experiment. Take a photo on your phone and zoom in, and in… eventually the smooth picture dissolves into a mosaic of coloured squares. Now open a company logo saved as an SVG and zoom into that just as far — the edges stay razor-sharp forever, no squares in sight. Same screen, same eyes, wildly different behaviour. That difference is the whole idea of this page: there are two fundamentally different ways to describe a picture to a computer, and they are called raster and vector graphics.
A raster image is a grid of coloured pixels — a photograph, a game sprite,
the contents of the framebuffer at the end of the
A raster image is a rectangle of
A modest
A vector image throws pixels away entirely. Instead it stores a recipe: “a circle of
radius
This makes vector graphics resolution independent. The same short description draws crisply on a tiny watch face or a giant billboard, because the equations are re-evaluated at the target size every time. A logo, a font glyph, a map, a diagram — anything built from clean geometric shapes — is a natural fit. But a photograph of a forest is not: there is no tidy set of equations for a million leaves, so forcing it into vectors would need so many tiny shapes that it becomes larger and slower than just storing the pixels.
Every vector image ends up on a raster screen eventually, and that hand-off is where the trouble starts. A perfectly straight line (pure vector) has to be approximated by lighting up whole square pixels (raster). Drag the slider to change the line's slope and watch the pixel staircase chase the true geometric line — never quite matching it. Those stair-steps are aliasing, the “jaggies” you see on diagonal edges.
The vector description of that line is tiny and exact — two endpoints. The raster version is a specific set of filled pixels that only approximates it, and looks rougher the closer you zoom in. This is exactly why we invest so much effort in anti-aliasing: softening those steps by shading edge pixels partway.
Suppose a company logo is a simple flat shape. As a vector SVG it might be a few
hundred bytes of coordinates — call it
Now flip the scenario: a photograph of that same office. As a raster JPEG it compresses to a couple of megabytes and looks great. As a vector image it would be a nightmare — millions of coloured regions, far larger than the photo it's trying to replace. Neither format “wins”: you pick the one whose strengths match the picture. Smooth-toned, detailed, photographic → raster. Sharp, geometric, scalable → vector.
Here's the twist that ties it all together: your monitor is a raster device. It is a fixed grid of physical pixels, full stop. So no matter how a picture is stored, the last thing that ever happens is rasterization — turning it into pixels for that grid. Vector graphics don't escape pixels; they just delay the decision until they know exactly how many pixels they're allowed and at what size. Fonts work this way too: the letters you are reading are stored as vector outlines and rasterized (with anti-aliasing) freshly at whatever size and zoom you've chosen, which is why text stays crisp when you zoom a webpage but a photo on the same page goes soft.