Apply transformations
You can generate dynamic renditions of an asset using an existing public link without regenerating a new public link by using transformations. You can transform both simple and chained public links using the t={TRANSFORMATION_NAME} parameter in the public link.
Available transformations include width, height, and quality. Which transformations you can use depends on how your Content Hub solution is configured.
Certain image formats, particularly those stored in lossless mode (such as .png or .tiff), do not benefit from a quality (q) reduction in terms of visual appearance. As a result, transformations on these files might retain or even increase file size; this can happen when compression is removed or altered. Other formats, such as .webP, which support both lossy and lossless modes, can unintentionally default to a larger, near-lossless output if the quality parameter is omitted in the transformation configuration. This means that it is important to explicitly set the q value when transforming formats that support multiple compression modes.
To apply transformations:
-
To apply a transformation to a public link, append
t={TRANSFORMATION_NAME}to its URL. For example,https://<sitecore instance>/api/public/content/Figure1-cropped?&t=w320resizes the image to a width of 320 pixels.
You do not need to send the request directly to the media delivery service (MDS). The request URL is built transparently when using Content Hub.