Higher resolution images contain more detail, which can be measured by pixel count. Raster images are composed of pixels in a grid, while vector images use mathematical relationships between points and paths. Bitmaps are best for photos needing subtle shading, while vectors are more suited to illustrations. Common file formats include JPEG for photos and GIF/PNG for web use, with different compression levels and capabilities. Optimizing images balances file size and quality for different purposes.