Add transformations to public links for dynamic asset renditions

Version: 5.2

You can produce dynamic renditions of DAM assets in Sitecore without reproducing a new public link by using transformations. This allows you to transform an asset’s height, width, or quality using the t=[transformation_name] parameter in the public link. For example, the following shows the insertion of a transformation parameter in a public link to dynamically resize an image width to 100 pixels:

RequestResponse
https://{sitecore instance}/api/public/content/Figure1-cropped?&t=w100

For each transformation definition in Sitecore Content Hub, you create a transformation mapping item in Sitecore. This is the step that makes DAM transformation definitions available for selection in the Content Editor, in the Insert DAM Transformation dialog

Before you begin

To create a transformation mapping item:

  1. In Content Editor, navigate to /sitecore/system/Modules/DAM/Config/Transformation/Image Field.

  2. In the content area, click Transformations and, in the dialog, enter a name for the new transformation, and click OK.

  3. In the Definition section, in the Transformation Name field, enter the name of the transformation definition that you want to map to in Sitecore Content Hub.

  4. On the ribbon, click Save.

  5. Repeat this procedure for all transformation definitions configured in Sitecore Content Hub.

You can now insert DAM transformations in the Image field to transform your DAM assets in the Content Editor. For example, in the Image field, when you click DAM Transformation, the Insert DAM Transformation dialog in Content Editor displays transformation definitions from Content Hub DAM, as shown in the following example:

The Insert DAM Transformation dialog listing transformation definition names in a drop-down list.

Do you have some feedback for us?

If you have suggestions for improving this article,