Raster vs. Vector Graphics: What Is the Difference?
· Updated
Every image on a computer is stored in one of two ways: as a grid of dots or as a set of shapes. That choice decides which program you draw it in, how it behaves when you enlarge it and which file format to save it in. Below is how raster and vector graphics differ and when to choose each.
Raster Graphics
A raster image is a grid of tiny colored squares called pixels, short for “picture elements.” The exact color of every pixel is recorded, so raster handles photos, smooth gradients and rich color well. A raster image is described by its size in pixels and its color depth. Familiar raster formats are JPEG, PNG and GIF. The word raster goes back to the Latin rastrum, “rake.”
Vector Graphics
A vector image is built from shapes defined by coordinates: points, lines, curves and polygons. Vector works best where precision and crisp edges matter, as in logos, icons, fonts, diagrams and technical drawings, but it is a poor fit for photos. The web standard for vector graphics is the SVG format; EPS and others are also common.
The Key Difference: Enlarging
- Raster depends on resolution: enlarge it beyond what its pixel count allows, and quality drops as the squares start to show.
- Vector can be enlarged as much as you like, since the program redraws the shapes and the edges stay smooth.
- A high-resolution raster image holds many pixels and takes up a lot of space, while a vector file is usually lighter.
Resolution for Screen and Print
A typical monitor shows between 72 and 130 pixels per inch. For color printing, 150 to 300 pixels per inch is typically enough for a raster image. That is why a picture that looks fine on screen can turn out too low in resolution for a large print.
When to Choose Which
- Photos, painterly drawings, textures and soft transitions call for raster.
- Logos, icons, lettering, infographics and anything printed at different sizes call for vector.
- Design work often mixes both, for example a vector logo over a raster photo.
Programs
Raster editors include Photoshop, GIMP, Krita and Procreate; vector editors include Illustrator and Inkscape. A review with platforms and pricing models is in Top 10 Programs for Creating Computer Graphics, and where beginners should start is covered in Basics of Computer Graphics: A Beginner’s Guide.
Raster and Vector in Our Course
In lessons, students draw in raster programs, Procreate on an iPad or MediBang Paint on Android, and work with layers, color and textures, and the course program also introduces different areas of computer graphics, vector graphics among them.
Our Computer Graphics Course
In our computer graphics course, students learn techniques for creating digital images, work with shape, color and detail and with the tools of graphics editors, and collect their work in a portfolio that can be prepared for online exhibitions and competitions. Lessons are open to students from age 7. A trial lesson costs $8: it is individual and lasts 45 minutes. More about the course is on the Computer Graphics page.