Add transformations to public links for dynamic asset renditions
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:
https://{sitecore instance}/api/public/content/Figure1-cropped?&t=w100For 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
-
If they don't already exist, you must create the required transformations in Sitecore Content Hub.
To create a transformation mapping item:
-
In Content Editor, navigate to
/sitecore/system/Modules/DAM/Config/Transformation/Image Field. -
In the content area, click Transformations and, in the dialog, enter a name for the new transformation, and click OK.
-
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.
-
On the ribbon, click Save.
-
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: