For rendering content, services or graphics, we now offer a new resolveCroppedImage method for cropping images.
The image is cropped according to the given height x width frame, starting from the center.

Examples of use:

Resource Explorer image

<img src="{resolver:resolveCroppedImage('explorer', @id, 130, 210)}" alt="{@name}"/>       

Content illustration field

<img src="{resolver:resolveCroppedImage(metadata/illustration/image/@type, metadata/illustration/image/@path, 200, 200)}" alt="{$alternative}"/>  

Rendering examples

Back to top