public class OptimizerConfig extends Object
| Constructor and Description |
|---|
OptimizerConfig()
Defaults
|
OptimizerConfig(int maxInMemoryBytes,
int maxPaletteSize,
boolean jpegConversionAllowed,
float jpegCompression,
int minThresholdBytes) |
| Modifier and Type | Method and Description |
|---|---|
float |
getJpegCompression()
The compression ratio to use when compressing JPEG images
A value between 0.5 and 0.9.
|
int |
getMaxInMemoryBytes()
The maximum allowed in-memory size of a parsed image.
|
int |
getMaxPaletteSize()
The maximum no. of palette entries to create when attempting to palettize an
image before quitting.
|
int |
getMinThresholdBytes()
The threshold in bytes below which we do not attempt to rewite
an image.
|
boolean |
isJpegConversionAllowed()
Allow conversion from and to JPEG for other image types that are fully opaque.
|
@Inject
public OptimizerConfig(int maxInMemoryBytes,
int maxPaletteSize,
boolean jpegConversionAllowed,
float jpegCompression,
int minThresholdBytes)
public OptimizerConfig()
public int getMaxInMemoryBytes()
public int getMaxPaletteSize()
public boolean isJpegConversionAllowed()
public float getJpegCompression()
public int getMinThresholdBytes()
Copyright © 2007-2012. All Rights Reserved.