Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.11.1
LEADTOOLS Raster Imaging C DLL Help

Compression Quality Factors

Show in webframe

The quality factor (Q factor) is a number that determines the degree of loss in the compression process when saving an image to a one of the following file formats that supports Q factor:

NOTE: 4:1:1 and 4:2:2 formats use subsampling for the color components. In the case of 4:1:1, the color components for 4 pixels is averaged during compression. This will cause a color shift, but the shift is tolerable for low compression ratios. If you have high compression and repeated savings, then the color shift will increase.  Due to this characteristic of the JPEG algorithm, the only ways to avoid this are to: (a)  use 4:4:4 (which has no subsampling), or (b) avoid repeated load and resave.

Q Factor

Predefined options for LEAD only

PQ1

(-1) Perfect quality 1

This option compresses all colors of a 24-bit file and maintains the quality of the original image at a smaller file size. As the name suggests, there is no visual loss of color at this setting.

PQ2

(-2) Perfect quality 2

This will produce a smaller file size than PQ1 while maintaining similar quality.

QFS

(-3) Quality far more important than size

This option removes colors not noticed by the human eye. Most viewers cannot tell the difference between an image compressed at this level and the original image.

QMS

(-4) Quality more important than size

While more colors are removed, most of them are colors or shades that are close to one another. The compressed image will appear very much like the original image. It will take some study to see the difference.

QS

(-5) Quality and size equally important

This option provides the highest compression while maintaining good image quality. Try this option first, then move up or down the list accordingly to obtain acceptable compression size and image quality.

SQS

(-6) Size more important that quality (sharp)

This option is recommended for images that have sharp edges. For example, an image that has a text overlay or an image with many straight lines. While it creates a larger file than the next option, it retains better edges.

SQT

(-7) Size more important than quality (less tiling)

This option produces less tiling in the image than the previous options. However, it may distort text or straight lines. It is a good option for image database applications.

MCQ

(-8) Maximum compression keeping quality

This option provides maximum compression while maintaining as high as possible image quality.

MC

(-9) Maximum compression

This option gives maximum compression. It is equivalent to a Q factor of 255.

Q Factor

Predefined options for LEAD only

ABCQ_LOSSLESS

[0] Lossless compression. This option compresses a 1-bit file and maintains image data unchanged.  Highest quality.

ABCQ_VIRTUALLOSSLESS

[1] Lossy compression. This option removes the image's noisy pixels and compresses it to a smaller file size than ABCQ_LOSSLESS.

ABCQ_REMOVEBORDER

[2] Lossy compression. This option removes the image's border, if it exists, and compresses it to a smaller file size than ABCQ_ VIRTUALLOSSLESS.

ABCQ_ENHANCE

[3] Lossy compression. This option cleans up the image, removes its border if it exists, and compresses it to a smaller file size than ABCQ_REMOVEBORDER.

ABCQ_MODIFIED1

[4] Lossy compression. This option cleans up the image, removes its border if it exists, and compresses it to a smaller file size than ABCQ_ENHANCE. However, it may distort text or straight lines.

ABCQ_MODIFIED1_FAST

[5] Same as ABCQ_MODIFIED1 without the border remove or image clean processes.

ABCQ_MODIFIED2

[6] Lossy compression. This option cleans up the image, removes its border if it exists, and compresses it to a smaller file size than ABCQ_MODIFIED1. However, it may distort text or straight lines. Maximum compression.

ABCQ_MODIFIED2_FAST

[7] Same as ABCQ_MODIFIED2 without the border remove or image clean processes.

ABCQ_MODIFIED3

[8] Lossy compression.  Provides faster encode and decode speed than ABCQ_MODIFIED1 or ABCQ_MODIFIED2. Provides the maximum compression.

ABCQ_MODIFIED3_FAST

[9] Same as ABCQ_MODIFIED3 without the border remove or image clean processes.

ABCQ_LOSSLESS_FAST

[10] Faster lossless compression than ABCQ_LOSSLESS. This option compresses a 1-bit file and maintains image data unchanged.  Highest quality.  Does not produce compression ratios as high as ABCQ_LOSSLESS.

ABCQ_LOSSY_FAST

[11] Lossy compression.  This is the fastest ABC lossy compression option.  Does not produce compression ratios as high as the other lossy options.

 

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.