public class Configuration
extends java.lang.Object
See the external documentation for details on these options.
| Modifier and Type | Class and Description |
|---|---|
static class |
Configuration.Builder |
static class |
Configuration.ImageHint
Optional hint when encoding WebP images
|
static class |
Configuration.SamplingMethod
Sampling algorithms for the exact resize block
|
| Modifier and Type | Field and Description |
|---|---|
ImageChromaSamplingMode |
chromaSamplingModeOverride
General: The
ImageChromaSamplingMode to use when encoding. |
ImageColor |
defaultBackgroundColor
General: Default background color to merge transparent images onto.
|
java.lang.Boolean |
interpretMetadata
General: Whether to read and interpret metadata such as EXIF for JPEG files.
|
java.lang.Boolean |
propagateChromaSamplingModeFromSource
General: Whether to propagate sampling mode from the source image.
|
Configuration.SamplingMethod |
samplingMethod
General: The sampling mode to use when scaling the image.
|
java.lang.Boolean |
useCompatibleDcScanOpt
Jpeg: Whether to use compatible DC scan configuration (keeping all DC components in the first
scan) when encoding JPEG images.
|
java.lang.Boolean |
useInterlacing
Png: Whether to save PNG images with interlaced encoding.
|
java.lang.Boolean |
useOptimizeScan
Jpeg: Whether to use scan optimization when encoding JPEG images.
|
java.lang.Boolean |
useProgressive
Jpeg: Whether to save JPEG images in progressive scan encoding.
|
java.lang.Boolean |
usePsnrQuantTable
Jpeg: Whether to use an alternative quantization table optimized for PSNR when encoding JPEG
images.
|
java.lang.Boolean |
useTrellis
Jpeg: Whether to use trellis optimization when encoding JPEG images.
|
Configuration.ImageHint |
webpImageHint
Webp: Provides an optional
Configuration.ImageHint to the webp encoder |
java.lang.Integer |
webpMethod
Webp: Compression quality/speed tradeoff where 0 is the fastest and 6 is the slowest/best
compression.
|
| Modifier and Type | Method and Description |
|---|---|
static Configuration.Builder |
Builder() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static Configuration |
makeEmpty() |
static Configuration |
makeForImageContainingGraphics() |
java.lang.String |
toString() |
@Nullable public final ImageColor defaultBackgroundColor
@Nullable public final java.lang.Boolean interpretMetadata
@Nullable public final Configuration.SamplingMethod samplingMethod
@Nullable public final ImageChromaSamplingMode chromaSamplingModeOverride
ImageChromaSamplingMode to use when encoding.@Nullable public final java.lang.Boolean propagateChromaSamplingModeFromSource
@Nullable public final java.lang.Boolean useTrellis
@Nullable public final java.lang.Boolean useProgressive
@Nullable public final java.lang.Boolean useOptimizeScan
@Nullable public final java.lang.Boolean useCompatibleDcScanOpt
@Nullable public final java.lang.Boolean usePsnrQuantTable
@Nullable public final java.lang.Boolean useInterlacing
@Nullable public final java.lang.Integer webpMethod
@Nullable public final Configuration.ImageHint webpImageHint
Configuration.ImageHint to the webp encoderpublic static Configuration makeEmpty()
public java.lang.String toString()
toString in class java.lang.Objectpublic static Configuration makeForImageContainingGraphics()
public static Configuration.Builder Builder()
Configuration objects.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object