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
|
Requirement: |
The DEVICE graphic option must be set to
the SAS/GRAPH JPEG device driver.
|
Category: |
Log and procedure output control: ODS Printing
|
PROC OPTIONS GROUP= |
ODSPRINT
|
JPEGQUALITY= n | MIN |
MAX
|
- 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.
- 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.
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.
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.