Final answer:
The graphics formats used on the web are JPEG (lossy), PNG (lossless), and GIF (lossy). JPEG is favored for its ability to display many colors and its use of lossy compression to reduce file sizes, while PNG offers lossless compression to maintain image quality. GIF is unique for its animation capabilities and lower color depth.
Step-by-step explanation:
Types of Graphics Formats Used on the WebThe types of graphics formats commonly used on the web include JPEG (lossy), PNG (lossless), and GIF (lossy). JPEG, which stands for Joint Photographic Experts Group, is widely used for digital photos because it can display millions of colors and uses lossy compression to create smaller image files. The compression in JPEG works by discarding colors that are less likely to be noticed by the human eye, which reduces the filesize. However, high compression can result in a noticeable decrease in image quality. PNG, or Portable Network Graphics, is a format that also supports millions of colors, but uses lossless compression, meaning no data is lost during the compression process, preserving the original image quality. GIF, or Graphics Interchange Format, is primarily used for simple images like logos and can also be lossy; it's unique in that it supports animation and is limited to a 256 color palette.
Resolution and compression are two factors that highly influence the file size and quality of digital images. High-resolution images consist of more pixels, which can potentially increase the file size, while compression aims to reduce this size by either selectively discarding data (lossy) or encoding it in a more efficient way (lossless).