Jump to content

7.2.2 PNG (for graphics, transparency)

From Computer Science Knowledge Base

7.2.2 PNG (for graphics, transparency)

  • What it is: PNG (Portable Network Graphics) is another very popular image format, especially for web graphics and logos.
  • How it works: PNG uses "lossless compression." This means that when you save an image as a PNG, no information is lost, and the image quality remains perfect, no matter how many times you save it.
  • Best for: Images with sharp lines, blocks of solid color, text, and especially images with transparency. Transparency means parts of the image can be see-through, allowing the background behind it to show through (like a logo that floats over a website background).
  • Weakness: PNG files are generally larger than JPG files, so they might load slower on websites if not optimized.

Bibliography:

Further Reading: