Image Resizer
The Image Resizer Template Building Block checks for screenshots in the input package, or for a specific item in the input package if specified in the Item name parameter, and resizes these screenshots according to the parameter settings.
Use
You can use this Template Building Block in any Compound Template.
Supported image types
The Template Building Block can process the following types of images:
- GIF screenshots—content type
image/gif - JPEG screenshots—content type
image/jpg - PNG screenshots—content type
image/png - BMP (Windows bitmap) screenshots—content type
image/bmp
Parameters
The parameters of this default Template Building Block are:
- Width
- An integer that specifies the desired width of the resized image. The default is 100.
- Height
- An integer that specifies the desired height of the resized image. The default is 100.
- Percentage
- If set to a value, specifies that the screenshots should be resized to N percent of their original sizes, where N is the value specified. For example, the value 200 causes the screenshots to be doubled in size, while the value 25 causes them to be reduced to one quarter of their original size. If you set this parameter, leave the Width and Height parameters empty.
- Item name
- If set to a value, only the image with this item name in the package is resized; all other screenshots in the input package retain their original sizes.