JPEG
File:Continuously varied JPEG compression for an abdominal CT scan - 1471-2342-12-24-S1.ogv
JPEG (Joint Photographic Experts Group) is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality. JPEG typically achieves 10:1 compression with little perceptible loss in image quality.
Overview[edit | edit source]
JPEG compression is used in a number of image file formats. JPEG/Exif is the most common image format used by digital cameras and other photographic image capture devices; along with JPEG/JFIF, it is the most common format for storing and transmitting photographic images on the World Wide Web. These format variations are often not distinguished, and are simply called JPEG.
The JPEG standard includes a lossless coding mode, but in practice, JPEG is mostly used for lossy compression. The compression method is usually Discrete Cosine Transform (DCT), a type of Fourier transform. Color images are typically broken down into three color components (Red, Green, and Blue), and each component is then compressed separately. JPEG uses a chroma subsampling system, which reduces the resolution of the chroma components (color information) compared to the luma (light intensity) component, on the assumption that the human eye is less sensitive to fine color details than to fine brightness details.
Compression Process[edit | edit source]
The JPEG compression process involves several steps: 1. Color Space Conversion: The image is converted from RGB to a different color space, usually YCbCr, which separates the image into luma and chroma components. 2. Subsampling: The chroma components are subsampled to reduce the amount of color information, based on the assumption that the human eye is less sensitive to color variations than to brightness. 3. Discrete Cosine Transform (DCT): The image (or image blocks) is transformed from the spatial domain to the frequency domain using DCT. 4. Quantization: The DCT coefficients are quantized, reducing the precision of the high-frequency components more than the low-frequency components. 5. Entropy Coding: The quantized coefficients are then encoded using a form of lossless compression, typically Huffman coding.
File Formats[edit | edit source]
The most common JPEG file formats are: - JPEG/Exif, primarily used in digital cameras and other photographic equipment. - JPEG/JFIF, commonly used for storing and transmitting images on the web.
Quality Considerations[edit | edit source]
The main advantage of JPEG is its flexibility in compressing photographic images into a small file size. However, this compression can cause artifacts, such as blurring, blocking, and ringing around edges, especially at high compression levels. The quality of a JPEG image is directly related to its compression level; higher compression levels (resulting in smaller file sizes) will generally lead to lower image quality, while lower compression levels (larger file sizes) preserve more detail and produce higher quality images.
Applications and Usage[edit | edit source]
JPEG is widely used in digital photography, web design, and many other fields requiring efficient storage and transmission of photographic images. Despite the rise of newer formats like WebP and HEIF that offer better compression and quality characteristics, JPEG remains ubiquitous due to its wide compatibility and the vast amount of content already stored in this format.
See Also[edit | edit source]
This article is a stub. You can help WikiMD by registering to expand it. |
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