Class CmsImageLoader

java.lang.Object
org.opencms.loader.CmsDumpLoader
org.opencms.loader.CmsImageLoader
All Implemented Interfaces:
I_CmsConfigurationParameterHandler, I_CmsResourceLoader, I_CmsEventListener

public class CmsImageLoader extends CmsDumpLoader implements I_CmsEventListener
Loader for images from the OpenCms VSF with integrated image scaling and processing capabilities.

To scale or process an image, the parameter CmsImageScaler.PARAM_SCALE has to be appended to the image URI. The value for the parameter needs to be composed from the SCALE_PARAM options provided by the constants in the CmsResourceTypeImage class.

For example, to scale an image to exact 800x600 pixel with center fitting and a background color of grey, the following parameter String can be used: w:800,h:600,t:0,c:c0c0c0.

Since:
6.2.0