Difference between revisions of "Vector or Raster?"

From TSAS Library
Jump to: navigation, search
(Created page with "In computer graphics, there are generally two types of images: vector images and raster images. Each is used in different situations, but you're likely here because you want t...")
(No difference)

Revision as of 20:07, 8 October 2019

In computer graphics, there are generally two types of images: vector images and raster images. Each is used in different situations, but you're likely here because you want to cut or 3d print something and need to know why a bitmap will not work. To understand this, you need to know how each is produced on your computer.

Raster Images

At its most basic, a raster image (or bitmap) is made up of many pixels, with each pixel displaying a color and opacity. If you zoom into a raster image, it becomes blurry and pixelated.

This pixelation occurs because the underlying code of a bitmap image only includes each pixel's coordinates and color value (among other information); if you make the image larger, all the pixels get larger, too.

Common raster formats are .bmp, .png, .tif, and .gif.

Raster (.png) image of phoenix logo with section zoomed in.

Vector Images

Vector images are used when you want an image to stay crisp at any size—say, on a t-shirt and a billboard—and when the precise edges of the image are important, like in laser cutting.

A vector image stays sharp because the edges of objects are encoded as points (called nodes when editing) and paths between them. The same phoenix logo can be converted to a vector format (I used Inkscape) for laser cutting, large-scale printing, and 3D modeling.

Common vector formats are .svg, .ai, .dxf, and .pdf (though a PDF may include raster images).

Error creating thumbnail: convert-im6.q16: not authorized `/tmp/magick-20238ifGkmarPYo9f' @ error/constitute.c/ReadImage/412. convert-im6.q16: no images defined `PNG:/tmp/transform_a14e46a843e0.png' @ error/convert.c/ConvertImageCommand/3258.