<$mt:AssetThumbnailURL$>
Returns the URL for a thumbnail you wish to generate for the current asset in context.
Attributes:
- height
The height of the thumbnail to generate. If this is the only parameter specified then the thumbnail's width will be scaled proportionally to the height. When the longer value than the original image is specified, it will be ignored.
- width
The width of the thumbnail to generate. If this is the only parameter specified then the thumbnail's height will be scaled proportionally to the width. When both of height and width are specified, the longer side of the original image will be processed, and the lesser side will be scaled proportionally.
- scale
The percentage by which to reduce or increase the size of the current asset.
- square
If set to 1 (one) then the thumbnail generated will be square, where the length of each side of the square will be equal to the shortest side of the image.
Example:
The following will output thumbnails for all of the assets embedded in all of the entries on the system. Each thumbnail will be square and have a max height/width of 100 pixels.
<mt:Entries>
<mt:EntryAssets>
<$mt:AssetThumbnailURL width="100" square="1"$>
</mt:EntryAssets>
</mt:Entries>