ImageGear for .NET User Guide > ImageGear Imaging Formats Reference > ImageGear Supported Compressions Reference > JPEG Compression |
Full Name | JPEG compression |
Compression ID | ImGearCompressions.JPEG = 6 |
ImageGear Assembly | ImageGear21.Core Assembly |
Bit Depth | Gray level: 8, 16 bpp; RGB: 24, 36 bpp; CMYK: 32 bpp; RGB+Alpha: 32 bpp |
File Formats | JPEG, DICOM, Adobe DNG, Adobe PDF, Adobe PS, TIFF |
IG Platforms Support | WIN32, WIN64, Unix, Unix64, .NET, .NET64, Silverlight, MAC |
This file compression method obtains a high compression ratio when used with detailed photographic images (its intended use). It is not a good compression choice for images with a small number of colors and high contrast edges, or for color-mapped data. Part of JPEGs success in high compression is due to the fact that it is a "lossy" compression method, meaning that the compression results in the loss of some data that is determined to be unimportant or unnecessary. This does not necessarily result in a visible reduction of image quality.
JPEG is highly flexible - it allows you to make a "quality" setting that determines the amount of loss that occurs and effects the size of the resulting compressed file.
The JPEG algorithm takes into account that the human eye is more sensitive to changes in brightness than to number of colors. Rather than saving the color data from each pixel in an image, it saves information on the rate of change of color, or "frequency information." More loss is allowed in the color data than in the brightness data. Some of the compression of the color is achieved by converting the RGB values to YCbCr color scheme. ImageGear supports two other JPEG compression modes--Lossless JPEG and Progressive JPEG.