Dynamic Media 101

Dynamic Media in AEM: A comprehensive guide.

By Martin Altmann

Dynamic Media (DM) is an extremely powerful and flexible media editing and distribution tool that works seamlessly with the Adobe Experience Manager (AEM). Some of the first questions clients ask when introduced to Dynamic Media are: Is it Content Delivery Network? Can i create renditions and other image formats with it? Can i host and distribute videos with it? Its actually all of it.

Dynamic Media is a comprehensive solution that allows for the management, manipulation, and distribution of rich media assets such as images and videos. It acts as a Content Delivery Network (CDN) by distributing assets to a global network of servers for efficient delivery. With Dynamic Media, you can create renditions and other image formats, watermark or manipulate images, and host and distribute videos. Clear your confusion and discover the full potential of Dynamic Media in AEM.

Below i will explain specific features of Dynamic Media and how these can be leveraged in AEM.

1. Dynamic Media is a CDN

Dynamic Media, when set up correctly in AEM, allows for the efficient distribution of rich media assets such as images and videos to a global network of servers. These servers act as a Content Delivery Network (CDN) to ensure that the assets are delivered quickly and efficiently to users all over the world.

Imagine you have created a website with ten high-resolution images. Without a CDN in place, users accessing the website from locations far away from the actual AEM server, such as North America or Fiji, may experience slow loading times as the assets need to travel a long distance. With Dynamic Media in AEM acting as a CDN, the closest server to the user will be used to deliver the assets, greatly improving the loading time.

In addition to improving loading times, Dynamic Media in AEM offers the following benefits:

How can i leverage the CDN in AEM?

For Images:

After successfully integrating Dynamic Media with AEM, you may need to reprocess existing images within AEM in order to send them to DM. However, new images will be automatically pushed to DM.

Even with DM correctly set up, all images uploaded, and the CDN in place, your website may not automatically deliver images via DM. To activate this feature, you will need to "Enable DM features" for the image core component. To do this, go to the template and enable the DM feature in the image component policies.

It's important to note that this will activate DM image delivery for all components that delegate image rendering to the image core component like the core teaser. For example, the core teaser component will work with DM. However, it will not work for custom components that do not delegate to the image core.

For Videos:

In order to use Dynamic Media for videos, you will need to first ensure that DM is set up. Once this is done, you can create a video profile and apply it to a specific folder. You can then upload your videos or reprocess videos that have been uploaded before.

To activate the use of DM for videos on your website, go to the template and enable the "Dynamic Media" component. This component is versatile and can be used for both images and videos, with a range of options such as image presets, image-based viewers, and HTML5-based video viewers.

Once the component is enabled, you can place it on your website and easily add videos by drag-and-drop. The component also offers a responsive design, automatically adjusting to the size of the screen, providing a seamless viewing experience for users. Demo:

By default, the component uses the "Video_social" Viewer Preset. However, this preset can be easily edited to suit your needs. For example, you can change the "play" icon or remove the social share button.

To further customize the viewer, you can use "Viewer Modifiers." These modifiers take the form of name=value pairs, with an "&" delimiter and allow you to change viewers as outlined in the Viewers Reference Guide. For example, you can use the modifier posterimage=img.jpg&caption=text.vtt,1 to set a different image for the video thumbnail and associate a closed caption/subtitle file with the video. There is a list of available modifiers/commands that you can find.

In the example, the autoplay modifier can be added to the viewer to make the video start playing automatically:

2. DM delivers videos in the right size

Leveraging DM in conjunction with AEM can provide several benefits, particularly for websites with a large number of videos. Videos that are uploaded to AEM are automatically pushed to DM

Once uploaded, the device or computer will automatically detect the available bandwidth and select the appropriate encoded video from the set. The video is then streamed to desktops, mobile devices, or tablets, and the quality is dynamically adjusted based on network conditions. For example, when a customer enters full-screen mode on a desktop, the Adaptive Video Set uses a higher resolution for an improved viewing experience.

In addition, DM can help save physical AEM hard drive space. Without DM, you would need to keep all your video renditions within AEM. Imagine you want to keep a 240p, 480p, 720p, and 1080p version of your uploaded video. Each video would at least double in size.

How can i use the DM video feature in AEM?

That was already explained in the video section above.

3. DM delivers images in the right size

Smart Imaging is a technology that optimizes image file size for better image delivery performance based on the client browser, device display, and network conditions. This can have a significant impact on key business metrics such as conversion rates, time spent on a site, and lower bounce rates, as images are often a major contributor to page load time.

In simpler terms, when a client accesses your website with images coming from Dynamic Media (DM), the technology works to deliver the images as quickly and efficiently as possible. This improves the overall performance of the website and provides a better user experience.

How can i use Smart Imaging feature in AEM?

Luckily there is not much to do. If you follow the steps above it should work out of the box.

4. DM has a smart crop functionality for images and videos

Some might think that smart crop is an AEM feature. Its not. It is just very well integrated.

Cropping images and videos can be a tedious and time-consuming process that requires precise measurements and cutting. Before you needed multiple sizes of each image to fit into various layouts for different screen sizes. This is not practical for websites with hundreds or thousands of images. The Smart Crop feature in solves this problem by automatically detecting and cropping the focal point in any image or video. Some key features of Smart Crop include:

How can i use the smart crop functionality in AEM?

For Images:

First you have to create an image profile, once done you can leverage the dynamic media component to leverage the smart crops on your website. Both is seen here.

Another option is to use the image core component as described here.

For Videos:

First you have to create a video profile, once done you can leverage the smart crop video component to leverage the smart crops on your website. Both is seen here.

5. DM comes with a set of ready made viewers (Video, 360 Degree, Hotspots, ...)

The viewers in Adobe Dynamic Media are interactive components to display images and videos on a website or application in different ways. Each viewer component has a different set of features and capabilities that are suited to different use cases and scenarios.

Most of these viewers can be directly used in AEM. In here you can see the dynamic media video component and futher down the hotspot component (Ship with tags). On Adobe's official site you can see (almost all) viewers.

6. DM has an API to manipulate images on the fly

DM provides a wide range of commands or modifiers that you can use to adjust and optimize the appearance of your media assets.

Some of the modifiers are used to adjust the basic properties of an image, such as brightness, contrast, and saturation. These commands allow you to fine-tune the visual appeal of an image, making it more eye-catching and engaging for viewers.

Other modifiers are used for more advanced image manipulation. For example, the "rotate" command allows you to rotate an image by a specified number of degrees, while the "clipPath" and "clipXPath" commands can be used to create more complex shapes and masks.

Additionally, you can use commands like "op_usm", "op_blur", "op_noise" to enhance image quality and "size" and "scale" to modify size of image, making it fit your need.

There is also the possiblity to change text on images (Read more). This requires a PSD file to upload to DM. See examples below.

By using these commands together in different combinations, you can create a wide range of effects and optimizations, making your images and videos more visually appealing and engaging for your audience.

Examples

This was originally a photoshop file with two layers. An image and a text layer.
In here i set the text to "Genießen Sie das Muttersein in jedem Moment".
Try Example 1

Check the url. You can try to change the words. In here i translated it to english:
Try Example 2

In the next Example i am adding a saturation modifier (op_saturation=-100) to get a greyscale image.
Try Example 3

You can also use the modfiers within the image core component:

Added "rotate=45&op_saturation=-100" as image modifiers.

Where can i use the modifier in AEM?

There are three ways to leverage image modifiers in Dynamic Media (DM) that I am aware of:

Unfortunately, there is currently no way to use text manipulation (like above) directly within AEM that I am aware of.

7. But all that glitters is not gold

Last but not least some things where i think that the DM integration could be enhanced.

We know that setting up DM properly can be a demanding task. Reach out if you need help.

What are you waiting for?

If you’re looking to take your business to the next level, Comwrap Reply can help you achieve this. Get in touch with us today to discover how.

Contact us