Class WebpEncoderOptions
java.lang.Object
com.idrsolutions.image.webp.options.WebpEncoderOptions
- All Implemented Interfaces:
EncoderOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintRetrieve the image quality level for WEBP output.voidsetCompressionFormat(WebpCompressionFormat webpCompression) define compression mode used for Webp (currently only supports LOSSY and LOSSLESS)voidsetQuality(int quality) Set the image quality level for WEBP output.
-
Constructor Details
-
WebpEncoderOptions
public WebpEncoderOptions()
-
-
Method Details
-
getOutputFormat
- Specified by:
getOutputFormatin interfaceEncoderOptions
-
setQuality
public void setQuality(int quality) Set the image quality level for WEBP output. The quality level can be between 1 - 100 and if not set defaults to 75. Higher quality produces better quality WEBP files but increases output data size.- Parameters:
quality- Quality level to set for JPEG output
-
getQuality
public int getQuality()Retrieve the image quality level for WEBP output. The quality level can be between 1 - 100 and if not set defaults to 75. Higher quality produces better quality WEBP files but increases output data size.- Returns:
- Quality level used for JPEG output
-
setCompressionFormat
define compression mode used for Webp (currently only supports LOSSY and LOSSLESS)- Parameters:
webpCompression- compression algorithm to apply
-
getCompressionFormat
-