SetChrominanceFactor
Set Compression for JPEG Output Files.
Syntax
bool SetChrominanceFactor (StrParam)
Parameters
A value of 0 to 255, with a value of 0 meaning minimum compression (best quality) and 255 meaning maximum image compression. Smart Parameters are supported.Returns
Always True.Level
All levels.Details
JPEG images are stored in a compressed format. This action controls the amount of compression that is used when you are converting an image to a JPEG image using the ConvertToJPEG action.Data loss is the result of JPEGs ability to achieve high compression ratios. Higher-quality settings result in less compression, while lower quality settings result in higher compression. Quality versus compression is a trade-off. Adjust image compression ratio by setting the SetLuminanceFactor and SetChrominanceFactor actions. The SetLuminanceFactor action adjusts the luminance or gray scale quality, while the SetChrominanceFactor action adjusts the chrominance or color quality. Lower settings for these properties result in higher-quality images with less compression. Higher settings for these properties result in lower quality images with more compression.
If this action is not called, a default value of 10 is used.
- Example:
SetLuminanceFactor("24") SetChrominanceFactor("10") SetGrayScale("True") ConvertToJPEG()