public class ImageRecompressionOptions extends NativeObject
| Modifier and Type | Method | Description |
|---|---|---|
CompressionAlgorithmSelection |
getAlgorithmSelection() |
The strategy for image recompression (Getter)
|
double |
getCompressionQuality() |
The compression quality for lossy image compression algorithms (Getter)
|
void |
setAlgorithmSelection(CompressionAlgorithmSelection value) |
The strategy for image recompression (Setter)
|
void |
setCompressionQuality(double value) |
The compression quality for lossy image compression algorithms (Setter)
|
equals, hashCodepublic CompressionAlgorithmSelection getAlgorithmSelection()
For each image to be recompressed, a specific choice of compression
algorithms are tried. The selection of algorithms depends on this strategy, the
type of the optimizer profile (e.g. profiles.Web),
the color space of the image, and getCompressionQuality().
The image is recompressed using the algorithm resulting in the
smallest output file.
Refer to CompressionAlgorithmSelection for
more information on strategies.
Default:
public void setAlgorithmSelection(CompressionAlgorithmSelection value)
For each image to be recompressed, a specific choice of compression
algorithms are tried. The selection of algorithms depends on this strategy, the
type of the optimizer profile (e.g. profiles.Web),
the color space of the image, and getCompressionQuality().
The image is recompressed using the algorithm resulting in the
smallest output file.
Refer to CompressionAlgorithmSelection for
more information on strategies.
Default:
java.lang.IllegalArgumentException - if value is nullpublic double getCompressionQuality()
This property specifies the compression quality for the JPEG and JPEG2000 image compression algorithms. Valid values are between 0 (lowest quality) and 1 (highest quality).
Although the JBIG2 algorithm for bi-tonal images also allows lossy compression, it is not influenced by this property. The JBIG2 compression quality is fixed at 1 (lossless).
Default:
profiles.Web profile: 0.8profiles.Print profile: 0.9profiles.Archive profile: 0.9profiles.MinimalFileSize profile: 0.75public void setCompressionQuality(double value)
This property specifies the compression quality for the JPEG and JPEG2000 image compression algorithms. Valid values are between 0 (lowest quality) and 1 (highest quality).
Although the JBIG2 algorithm for bi-tonal images also allows lossy compression, it is not influenced by this property. The JBIG2 compression quality is fixed at 1 (lossless).
Default:
profiles.Web profile: 0.8profiles.Print profile: 0.9profiles.Archive profile: 0.9profiles.MinimalFileSize profile: 0.75java.lang.IllegalArgumentException - If the given value is outside of the range 0 - 1