ImageCache.config Configuration File
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:
id | Identifier of the image type. |
width | Maximum width of the image. If both width and height are zero then the image is not resized. |
height | Maximum height of the image. If both width and height are zero then the image is not resized. |
aspect | Determines whether or not the image's original aspect ratio is preserved. |
watermark-text | Text to watermark the image with. |
watermark-h | Horizontal alignment of watermark text (Left, Center, Right ) |
watermark-v | Vertical alignment of watermark text(Top, Center, Bottom) |
watermark-font | Watermark text font face name. |
watermark-font-size | Watermark text font size. |
watermark-font-bold | Whether or not font is bold (true, false) |
watermark-image | Filename 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-aspect | Whether or not the watermark image's aspect ratio is preserved. |
output-format | MIME type of the output image( image/jpeg, image/tiff, image/bmp, image/gif, image/png) |
output-quality | Output quality (1-100) of the output image. 100 is the maximum quality. Not all output formats support image quality. |
output-recompress | Whether 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. |
cached | Whether or not images are locally cached. |
Return to help page