What is a Raster Image?

Mary McMahon
Mary McMahon

A raster image, also called a bitmap, is a way to represent digital images. It can be created in a wide variety of formats, including the familiar .gif, .jpg, and .bmp. The image is represented in a series of bits of information that translate into pixels on the screen. These pixels form points of color that create an overall finished image.

Because transmitted data is used to determine their pixel characteristics, all photos from deep space are raster images.
Because transmitted data is used to determine their pixel characteristics, all photos from deep space are raster images.

When a raster image is created, the image on the screen is converted into pixels. Each pixel is assigned a specific value that determines its color. This format uses the red, green, blue (RGB) color system. An RGB value of 0,0,0 would be black, and the values go all the way through to 256 for each color, allowing the expression of a wide range of values. In photographs with subtle shading, this can be extremely valuable.

Raster images are composed of tiny squares that work together to create a recognizable picture.
Raster images are composed of tiny squares that work together to create a recognizable picture.

When the image is viewed, the pixels usually smooth out visually for the user, who sees a photograph or drawing. When blown up, however, the individual dots of color become apparent. While this effect is sometimes a deliberate choice on the part of an artist, it is usually not desired. Depending on resolution, some images can be enlarged to very large sizes, while others quickly become difficult to see. The smaller the resolution, the smaller the digital image file, so people who work with computer graphics must find a balance between resolution and image size.

Resolution refers to the number of pixels per inch (PPI) or dots per inch (DPI) in the image. The higher the resolution, the greater the number of pixels, allowing for a greater gradation of color that will translate better as the image is enlarged. Of course, the more pixels, the more individual points of data to be stored, as well. For high quality photography, a high DPI is preferred because the images will look more appealing to the viewer. For small images that do not need to be blown up, or when quality is not important, a low DPI can be used.

The alternative type is the vector image, which uses a mathematical formula to draw a picture. A vector image defines points and the paths that connect them to form a digital representation of the image. Because mathematics can be easily scaled, this type can be enlarged but still have smooth edges. Their use is limited, however, and they are most suitable for typography, line art, and illustrations. A raster image usually remains the best choice for a photograph or shaded drawing.

Mary McMahon
Mary McMahon

Ever since she began contributing to the site several years ago, Mary has embraced the exciting challenge of being a wiseGEEK researcher and writer. Mary has a liberal arts degree from Goddard College and spends her free time reading, cooking, and exploring the great outdoors.

You might also Like

Readers Also Love

Discussion Comments

anon248101

1. Install potrace, put a folder somewhere and navigate to the potrace command, set the path.

a.) Convert bmp to svg; potrace test.bmp --svg

Convert Images to SVG format: potrace -o output.svg input.pgm --svg.

Potrace supports following bitmap as input files: PBM, PGM, PPM, or BMP format.

SVG to raster image: we can convert SVG to raster image using inkscape (Open source SVG graphics editor under the GPL).

Command: inkscape filename.svg --export-png=filename.png

anon127712

Thanks a lot. Keep up the good work.

anon76214

thanks for this information. shyam

anon40663

Is there a way to minimize quality loss (graininess) when I enlarge a raster image?

Is there a way to convert a raster image into a vector and then convert it back to a raster?

scissaux

What does it mean to rasterize an image?

Post your comments
Login:
Forgot password?
Register: