Image Crop Example
The image macro provides an API for the various crop settings of the image processor. The following sample removes a border 10px thick from all sides of the target image.
Smartsite SXML | Copy Code |
---|---|
<se:image location="SMARTSITELOGO" cropleft="10" croptop="10" cropright="-10" cropbottom="-10"/> |
Example Result | Copy Code |
---|---|
<img src="/test.net?id=SMARTSITELOGO&hid=img;crt=10;crl=10;crr=-10;crb=-10" alt="Smartsite Logo Transparent" style="width:146px;height:36px" /> |