java.lang.Object
one.jpro.platform.image.manager.ImageManager
Manages the process of loading and caching images, allowing efficient retrieval and processing.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcomputeImageDefinitionHash(ImageDefinition imageDefinition) Computes the hash for the given image definition.static ImageManagerReturns the singleton instance of ImageManager.loadImage(ImageDefinition imageDefinition) Loads the image based on the given definition, caches it, and returns the image result.
-
Method Details
-
getInstance
Returns the singleton instance of ImageManager.- Returns:
- the single instance of ImageManager
-
loadImage
Loads the image based on the given definition, caches it, and returns the image result.- Parameters:
imageDefinition- the image definition containing source, transformation and encoder- Returns:
- the loaded and potentially cached image result
-
computeImageDefinitionHash
Computes the hash for the given image definition.- Parameters:
imageDefinition- the image definition- Returns:
- the computed MD5 hash as a string
-