Image file formats
Filename extension | Various (.jpg, .png, .gif, etc.) |
---|---|
Magic number | Various |
Initial release | Various 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]
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 |
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian
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