Not sure which file to pick for your logo or photo? In the vector vs raster graphics debate, use vector for logos and shapes that must scale, and raster for photos and rich color.
This guide belongs to our graphic design collection, which covers the core skills behind clean visual work.
| Item | Value |
|---|---|
| How raster graphics store an image | Fixed pixels on a grid |
| How vector graphics store an image | Equations |
| High definition photo resolution | 300 DPI or more |
| Standard definition photo resolution | Around 72 DPI |
| Common vector formats | SVG, EPS, PDF |
| Common raster formats | JPEG, PNG, GIF |
These figures come from G2’s explainer on raster graphics. Guidance on file formats and resolution can change, so check the source before you rely on them.
How raster graphics work
Raster graphics, also known as bitmaps, store a picture as fixed pixels fitted onto a grid. Each pixel represents a single color, and together they form a clear image, much like a mosaic. You can read the full definition in G2’s raster graphics guide.
Richer images need more colors, more pixels and therefore more storage. That is why file size follows the amount of pixels more than the dimensions of the picture: a screen-sized, low-definition image holds less data than an Ultra-HD profile picture.
Pixel density is measured in DPI (dots per inch) or PPI (pixels per inch), and the two terms are interchangeable. High definition photos are 300 DPI or more, while standard definition photos sit around 72 DPI, according to the same G2 guide.
Higher density means smaller pixels, so more color fits into the same space. If you want a hero image that covers an entire screen, start from a high-density file.

How vector graphics work
Vectors take a different route and store an image as equations rather than pixels. Each point corresponds to a master x-y axis that keeps everything in order, so a fresh image is generated at every new size, as G2 explains.
The result is a graphic that keeps the same resolution at any size. A vector looks its best whether it appears as a thumbnail or a hero image, and it does not rely on DPI at all.
The practical benefits for everyday design work are easy to list:
- Smaller file sizes, which means faster loading on the web.
- Easier editing and modification.
- Scaling without any loss of sharpness.
Most fonts are designed in vector formats, which is why type stays crisp at any size, and it is one reason to read up on how to pair fonts once your shapes are sorted.
How do you choose between vector and raster?
The rule of thumb in G2’s guide is to use raster graphics when image quality is the top priority, and vector for everything else. A short checklist makes that easy to apply:
- Ask whether the image is a photograph. Photographs can only be raster, or at least originate that way.
- Ask whether it must appear at several sizes. A logo that needs to look sharp on desktop and smartphone screens belongs in a vector file.
- Ask whether it needs blends, shading and gradients. More pixels make an image more lifelike, so raster handles these best.
- Ask whether it is a simple shape or icon. Drawn shapes are faster and more convenient as vectors at any size.
The source offers a handy analogy: raster is like painting, able to build complex imagery from blended colors, while vector is like drawing, quick and convenient for simple shapes.
Product photography shows the trade-off. Online shops want photos as realistic as possible so shoppers can judge items accurately, yet many large photos take up a lot of data space, so the right compression format matters.
File formats and resolution myths
Format names tell you which family a file belongs to. G2 groups them like this:
- Vector: SVG, EPS and PDF.
- Raster: JPEG, PNG and GIF, plus BMP, TIFF and many specialized formats.
One persistent myth says every web image is automatically reduced to 72 DPI. The source calls that false and explains that browsers consider only the final dimensions of an image, not its DPI, as described by G2.
Another limit applies to photos. Once a photograph is taken you cannot improve its resolution, although you can compress it, so decide the final use before you shoot whenever possible.
Using both in one project
Because photographs are so popular in web design, sites usually end up with an assortment of both types. A typical page might pair a raster hero photo with a vector logo and vector icons.
The two types can even overlap. Some vector formats implement rasterization, so an SVG can contain rasterized components, and with enough skill in an image editor you can sometimes vectorize a raster photograph.
If you are still building these habits, our guide on how to learn graphic design is a sensible next step.
Frequently asked questions
Can a photograph be a vector?
Show answer
Not in the usual sense. A camera captures pixels, so a photo starts life as a raster image, and there is no “vector camera” for real-world scenes.
Do browsers shrink web images to a lower DPI?
Show answer
No. Browsers look at an image’s final dimensions rather than its DPI, and the notion that web images drop to 72 DPI is described as a leftover from older screen displays by G2.
Why does a raster image get blurry when enlarged?
Show answer
A raster file starts with a preset number of pixels that never changes. Making the picture larger cannot add detail, and producing a smaller version means creating an entirely new file.
Which format suits a logo?
Show answer
A vector file is the better pick. It is generated fresh at each size, so the logo stays sharp from a phone screen to a large desktop display.



