The ImageCache.config file resides in the Configuration folder of the web application. It determines how image processing is applied. The file is an XML file that defines the available types and processing for each type. Valid attributes are:

idIdentifier of the image type.
widthMaximum width of the image. If both width and height are zero then the image is not resized.
heightMaximum height of the image. If both width and height are zero then the image is not resized.
aspectDetermines whether or not the image's original aspect ratio is preserved.
watermark-textText to watermark the image with.
watermark-hHorizontal alignment of watermark text (Left, Center, Right )
watermark-vVertical alignment of watermark text(Top, Center, Bottom)
watermark-fontWatermark text font face name.
watermark-font-sizeWatermark text font size.
watermark-font-boldWhether or not font is bold (true, false)
watermark-imageFilename of the watermark image. CalmAPI looks for the image in the bin folder. The image is alpha blended with the original image. If you use a file format that supports transparency (such as png) then the transparency in the watermark image is honoured.
watermark-image-aspectWhether or not the watermark image's aspect ratio is preserved.
output-formatMIME type of the output image( image/jpeg, image/tiff, image/bmp, image/gif, image/png)
output-qualityOutput quality (1-100) of the output image. 100 is the maximum quality. Not all output formats support image quality.
output-recompressWhether or not the output is recompressed when the image stored in Calm is in the same format as the output image and no extra processing is required for that image. Multi-page images and images that require resizing / watermarking have to be recompressed.
cachedWhether or not images are locally cached.

 

Return to help page