Skip to main content

Media delivery overview

The media delivery API allows you to make use of the features of Dynamic Media to manipulate images on the fly, rendering any variant from a single master image. Using a simple URL based API you can transform images, including resizing, rotating and cropping.

The API reference shows the parameters that are available to you for manipulating images, sets and video. You can also try out most of these features on the Dynamic Media playground interactive documentation area.

Using media delivery with images
Link copied!

You can dynamically manipulate any image using the parameters available, just by appending these parameters to the end of the URL. In the following example the image width is set to 300 pixels:

https://cdn.media.amplience.net/i/ampproduct/twofriends?w=300

You'll often want to combine multiple parameters. For example, to set the image width and flip the image vertically:

https://cdn.media.amplience.net/i/ampproduct/twofriends?w=300&flipv=true

Note, to manipulate SVG images via their URLs, such as for changing text within an image, use delivery URLs that start with cdn.graphics.amplience.net. The example below shows how to format media delivery URLs for SVGs.

https://cdn.graphics.amplience.net/v1/media/graphics/i/ampproduct/icon-rocket-dark

Read more about using SVGs.

Using media delivery with videos
Link copied!

With video files you can include profiles, thumbnails and metadata in delivery URLs. For example, using the following URL will return the winter-coat video encoded using the mp4_720p profile:

https://cdn.media.amplience.net/v/ampproduct/winter-coat/mp4_720p

Read more about video and media delivery.

Dynamic Media playground