ImageGear for C and C++ on Linux v18.8 - Updated
Lossy JPEG Compression
User Guide > File Formats and Compressions > Compressions > JPEGCompressions > Lossy JPEG Compression

JPEG Compression

Full Name JPEG compression
Compression ID IG_COMPRESSION_JPEG = 6
ImageGear Component Core
Bit Depth Gray level: 8, 16 bpp; RGB: 24, 36 bpp; CMYK: 32 bpp; RGB+Alpha: 32 bpp
File Formats AFX, AVI, JPEG, DICOM, Adobe DNG, EPS, EXIF-JPEG, MAC PICT, Adobe PDF, Adobe PS, TIFF
ImageGear Platforms Support WIN32, WIN64, Unix, Unix64, .NET, .NET64, MAC

Comments:

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 affects 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.

See Also:

Lossless JPEG, Progressive JPEG