JPEGQUALITY= System Option

Specifies the JPEG quality factor that determines the ratio of image quality to the level of compression for JPEG files produced by the SAS/GRAPH JPEG device driver.
Valid in: Configuration file, SAS invocation, OPTIONS statement, SAS System Options window
Category: Log and procedure output control: ODS Printing
PROC OPTIONS GROUP= ODSPRINT
Notes: This option is ignored when the DEVICE graphics option is not set to JPEG.

This option can be restricted by a site administrator. For more information, see Restricted Options.

Syntax

JPEGQUALITY= n | MIN | MAX

Syntax Description

n
specifies an integer that indicates the JPEG quality factor. The quality of the image increases with larger numbers and decreases with smaller numbers. JPEG files are compressed less for higher-quality images. Therefore, the JPEG file size is greater for higher-quality images. For example, n=100 is completely uncompressed and the image quality is highest. When n=0, the image is produced at the maximum compression level with the lowest quality.
Default:75
Range:0–100
MIN
specifies to set the JPEG quality factor to 0, which has the lowest image quality and the greatest file compression.
MAX
specifies to set the JPEG quality factor to 100, which has the highest image quality with no file compression.

Details

The optimal quality value varies for each image. The default value of 75 is a good starting value that you can use to optimize the quality of an image within a compressed file. You can increase or decrease the value until you are satisfied with the image quality. Values between 50 and 95 produce the best quality images.
When the value is 24 or less, some viewers might not be able to display the JPEG file. When you create such a file, SAS writes the following caution to the SAS log:
Caution: quantization tables are too coarse for baseline JPEG.

See Also

Using Graphics Devices in SAS/GRAPH: Reference