-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MOSIP-33318] Merge develop from develop-java21
Signed-off-by: JanardhanBS-SyncByte <[email protected]>
- Loading branch information
1 parent
13caf81
commit 2e5c264
Showing
9 changed files
with
602 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 38 additions & 9 deletions
47
image-compressor/src/main/java/io/mosip/image/compressor/sdk/constant/SdkConstant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,55 @@ | ||
package io.mosip.image.compressor.sdk.constant; | ||
|
||
/** | ||
* The class contains variable names used from configuration | ||
* Constants used in the Image Compressor SDK configuration. | ||
* <p> | ||
* This class provides constant variable names used in the configuration | ||
* related to image compression and resizing factors. | ||
* </p> | ||
* <p> | ||
* Example usage: | ||
* <pre>{@code | ||
* double resizeFactorFx = env.getProperty(SdkConstant.IMAGE_COMPRESSOR_RESIZE_FACTOR_FX, Double.class, 0.25); | ||
* double resizeFactorFy = env.getProperty(SdkConstant.IMAGE_COMPRESSOR_RESIZE_FACTOR_FY, Double.class, 0.25); | ||
* int compressionRatio = env.getProperty(SdkConstant.IMAGE_COMPRESSOR_COMPRESSION_RATIO, Integer.class, 50); | ||
* }</pre> | ||
* </p> | ||
* <p> | ||
* Note: The constants {@code IMAGE_COMPRESSOR_RESIZE_FACTOR_FX} and {@code IMAGE_COMPRESSOR_RESIZE_FACTOR_FY} | ||
* represent the resize factors for image compression, and {@code IMAGE_COMPRESSOR_COMPRESSION_RATIO} represents | ||
* the compression ratio. | ||
* </p> | ||
* <p> | ||
* All constants are defined as {@code public static final} and are not meant to be instantiated. | ||
* </p> | ||
* | ||
* @author Janardhan B S | ||
* | ||
* @since 1.0 | ||
*/ | ||
public class SdkConstant { | ||
private SdkConstant() { | ||
throw new IllegalStateException("SdkConstant class"); | ||
} | ||
|
||
/** | ||
* 0 to Double.Max_value | ||
*/ | ||
* Configuration key for the resize factor FX used in image compression. | ||
* <p> | ||
* The value range is from 0 to {@code Double.MAX_VALUE}. | ||
* </p> | ||
*/ | ||
public static final String IMAGE_COMPRESSOR_RESIZE_FACTOR_FX = "mosip.bio.image.compressor.resize.factor.fx"; | ||
/** | ||
* 0 to Double.Max_value | ||
*/ | ||
/** | ||
* Configuration key for the resize factor FY used in image compression. | ||
* <p> | ||
* The value range is from 0 to {@code Double.MAX_VALUE}. | ||
* </p> | ||
*/ | ||
public static final String IMAGE_COMPRESSOR_RESIZE_FACTOR_FY = "mosip.bio.image.compressor.resize.factor.fy"; | ||
/** | ||
* 1 to 1000 | ||
*/ | ||
* Configuration key for the compression ratio used in image compression. | ||
* <p> | ||
* The value range is from 1 to 1000. | ||
* </p> | ||
*/ | ||
public static final String IMAGE_COMPRESSOR_COMPRESSION_RATIO = "mosip.bio.image.compressor.compression.ratio"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.