Digital images can be either raster or vector images. Raster images are composed of pixels and are best for photos, while vector images use mathematical equations for smooth scaling. Common file formats for digital images include JPEG for photos, GIF for web use due to small file sizes and animation, TIFF for professional images, and PNG for color web images. The type of digital image and file format used depends on the image content and intended use.