|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.gadgets.rewrite.image.OptimizerConfig
public class OptimizerConfig
Configuration settings for the optimizer
| Constructor Summary | |
|---|---|
OptimizerConfig()
Defaults |
|
OptimizerConfig(int maxInMemoryBytes,
int maxPaletteSize,
boolean jpegConversionAllowed,
float jpegCompression,
int minThresholdBytes)
|
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public OptimizerConfig(int maxInMemoryBytes,
int maxPaletteSize,
boolean jpegConversionAllowed,
float jpegCompression,
int minThresholdBytes)
public OptimizerConfig()
| Method Detail |
|---|
public int getMaxInMemoryBytes()
public int getMaxPaletteSize()
public boolean isJpegConversionAllowed()
public float getJpegCompression()
public int getMinThresholdBytes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||