Anders Paulsen
Author Anders Paulsen
Senior Creative Designer
Posted in Software & Development
July 27, 2016
Back to blog

Graphic Files Explained: Vector vs Raster

Digital graphic files will generally fall into one of two categories—vector or raster. Vector graphics, such as logo files, use intricate paths made up of points and lines to create an image. Raster graphics, such as digital photographs, are created using a grid of tiny pixels. The purpose of this post is to further explain the difference between these file types and to help determine which type is required for a variety of purposes. 


Vector files, made up of points and lines to create paths, can be scaled up and down without losing quality. This makes vector files the best format for graphic assets such as illustrations, icons and company logos, as the same file can be used for designs ranging from a mobile app to a large billboard without sacrificing quality or increasing file size.

eCommerce Platforms and Drupal Commerce Drupal Development Drupal Customizable Products

Probably the most common example of vector-based files that we use daily without even realizing are font files. Each letter that you type is a vector graphic. You can increase text size or zoom in as much as you want and fonts will still remain clear when viewed online or in standard editable formats such as Word documents.

Although most online graphics are still raster-based, the introduction of vector-based SVG files allows elements like logos, illustrations and icons to be used in apps and web development. This will be an important factor moving forward with responsive site designs, as layouts and design elements are adjusted to fit various screen sizes and resolutions like retina displays.

eCommerce Digital Marketing Strategy and Custom eCommerce Solutions


Raster images are made up of many tiny squares called pixels and are often referred to as 'bitmap' images. When zoomed in closely, the individual pixels can be observed. The resolution of a raster file is referred to as DPI (dots per inch) or PPI (points per inch), and is the main determining factor for increasing file size.

Open Source eCommerce Applications and Web Based POS

Essentially all digital photography is raster-based. Most graphic files found online are also raster-based and saved for a screen resolution of 72 DPI, a larger file size is usually required for use in printed material where the standard resolution is 300 DPI.

File Extensions

Typically you can distinguish between raster and vector formats by looking closely at the edges of graphic elements like text and logos. File extensions will also suggest which category a file will fall under, though there are always exceptions to the rule.

eCommerce Website Integration

.jpg    Joint Photographic Experts Group (JPEG)            
.png    Portable Network Graphics (PNG)
.gif    Graphics Interchange Format (GIF)            
.tiff    Tagged Image File Format (TIFF)            
.psd    Adobe Photoshop File            
.pat    Corel Paint File

.eps    Encapsulated PostScript File (EPS)            
.svg    Scalable Vector Graphics (SVG)            
.ai    Adobe Illustrator File            
.cdr    Corel Draw File

.pdf    Portable Document Format (PDF)

Note: Any of the above file types can be exported to a pdf format, so these files can be
either vector or raster or a combination of the two.

Disclaimer: Graphic software has come a long way over the years, resulting in a lot of line-blurring between programs. Raster-based images can be embedded into Adobe Illustrator and vectors can be placed and even created in Photoshop. With this in mind, consult a graphic designer when in doubt. Make sure the designer provides vector logo files when having your logo updated and ask your printer to double-check the resolution of images when having material professionally printed.


To recap, logo files should always be vector-based and SVG files can be used to display vector graphics online. Web graphics are generally not suitable for professional printing. When in doubt, consult a professional.

How to decode obfuscated PHP files

If you've ever had a website or server hacked, that was serving up PHP files, then you might have come across a file like this: This is a real life ...
Keep Reading »

Code Review: How to Take on Unfamiliar Code

It’s commonplace for developers to be shuffled between projects and it can be challenging to work with unfamiliar code. You’ve probably experienced ...
Keep Reading »

A Developer's Guide to Taking Action: Evidence vs. Instinct

Acting based on evidence is slow and stable, acting on gut instincts is rapid and risky – every organization needs a mix of both, but how do you know ...
Keep Reading »

Fields marked with * are required.