Image file formats

From WikiMD's Wellness Encyclopedia

Image File Formats
Filename extensionVarious (.jpg, .png, .gif, etc.)
Magic numberVarious
Initial releaseVarious dates


Image file formats are standardized means of organizing and storing digital images. Image files are composed of digital data in one of these formats that can be rasterized for use on a computer display or printer. An image file format may store data in uncompressed, compressed, or vector formats. Once rasterized, an image becomes a grid of pixels, each of which has a number of bits to designate its color equal to the color depth of the device displaying it.

Types of Image File Formats[edit | edit source]

Image file formats are generally categorized into three main types: raster, vector, and compound formats.

Raster Formats[edit | edit source]

Raster image formats encode information in a grid of pixels. These formats are widely used for photographs and other types of images that require a rich color palette. Common raster formats include:

  • JPEG (Joint Photographic Experts Group) - uses lossy compression.
  • PNG (Portable Network Graphics) - supports lossless compression and transparency.
  • GIF (Graphics Interchange Format) - supports only 256 colors and simple animations.
  • BMP (Bitmap) - uncompressed and therefore large in file size.
  • TIFF (Tagged Image File Format) - widely used in publishing and photography, supports both loss and lossless compression.

Vector Formats[edit | edit source]

Vector image formats store instructions for drawing the image using lines and shapes. These are resolution-independent and are ideal for graphics such as logos and illustrations. Common vector formats include:

  • SVG (Scalable Vector Graphics) - used for web graphics.
  • EPS (Encapsulated PostScript) - used in professional graphic arts.
  • PDF (Portable Document Format) - often used for documents but can also contain vector graphics.

Compound Formats[edit | edit source]

Compound formats may contain both raster and vector data. They are useful for complex graphics. An example of a compound format is:

  • PDF (Portable Document Format) - can include both raster images and vector graphics.

Usage[edit | edit source]

Different image file formats are used based on their strengths and weaknesses. For example, JPEG is often used for photographs on the web due to its balance of quality and file size. PNG is preferred for images requiring transparency or without the need for compression artifacts.

Compression[edit | edit source]

Compression can be either lossy or lossless. Lossy compression reduces file size by removing image data, which can degrade quality. Lossless compression reduces file size without affecting the quality of the image.

See also[edit | edit source]

WikiMD
Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes
Wiki.png

Search WikiMD

Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

WikiMD is not a substitute for professional medical advice. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD