Digital imaging involves creating digital images, often using digital photography. As digital technology became cheaper, it replaced film methods for many purposes. There are two main types of digital images: raster images, which represent pictures as a grid of pixels, and vector images, which use mathematical formulas to define shapes. Raster images can lose quality when magnified, while vector images maintain their quality. Common image file formats include JPEG, GIF, and TIFF, each with their own advantages and disadvantages for file size, color support, and other qualities.