Image file formats

From WikiMD's Wellness Encyclopedia


Image File Formats



Filename extensionVarious (.jpg, .png, .gif, etc.)
Internet media type
Uniform Type Identifier (UTI)
Magic numberVarious
Developed by
Initial releaseVarious dates
Latest release
Type of format
Container for
Contained by



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

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

Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. 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