afopk.blogg.se

File formats for pictures
File formats for pictures




file formats for pictures

JPEG uses another approach, but the result is the same: no color palette and lots of colors. Each pixel is represented by 3 values: the intensity of red, green and blue. The palette is pre-defined by the image format. High-color image files typically contain no color palette. These modes are more suitable for photos and other images with a high color resolution. We define high-color as modes beyond 256 colors. Low-color image files typically contain a color palette, from which the colors are chosen. This number of colors is generally suitable for drawings, logos and other simple graphics.

file formats for pictures

We define low-color as modes ranging from 2 up to 256 colors. The more colors, the better quality, but the larger the file. Properties of common image file formats File formatĪ color mode dictates the maximum number of colors an image file can store. The following table compares the features of these file formats.

  • TGA (Truevision Graphics Adapter), also known as TARGA, is another old bitmap format.
  • PCX (PiCture eXchange) is an old bitmap format.
  • It has the ability to store multiple images, such as the pages of a scanned or faxed document.
  • TIFF (Tagged Image File Format) is a versatile image format.
  • Its lossy compression algorithm is suited for squeezing photos to small files.
  • JPEG (Joint Photographic Experts Group) is the common format for photos.
  • Especially suitable for web use are its compression ratio (except for photos) and transparency features.
  • PNG (Portable Network Graphics) is another common web format.
  • It is suitable for simple graphics such as drawings, logos and icons.
  • GIF (Graphics Interchange Format) is an old low-color image format, common on the web.
  • file formats for pictures

    It can store many types of images, but file sizes can be large. Vector images are beyond the scope of this article. Which one is the best for my job? Which format can store my images best? Which format produces the smallest files? Let's compare the following general-purpose, common formats: BMP, GIF, PNG, JPEG, TIFF, PCX and TGA. There are several image file formats available. This article compares common image file formats from a software developer's perspective.






    File formats for pictures