Expand my Community achievements bar.

SOLVED

How to make dynamic media image responsive

Avatar

Level 2

I have integrated Dynamic Media scene7 Mode with my AEM 6.5.5.0 environment. I have created few presets(480 x 250, 300 x 250, 330 x 100) and these presets are getting rendered on page. But what I see is the images are not responsive i.e.  every time I resize the browser window, the image size and width do not change. Aren't these dynamic media images supposed to be responsive ?How can I achieve responsiveness of images with dynamic media integration. 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 4

We define some required renditions [presets]  in Dynamic media.

Now when any image is uploaded, it dynamically generates same image of those all renditions.

It generates URL for all renditions and which ever url is used it shows that specific rendition only

 

Now from Site our custom JS should take care of responsive functionality and decide based on screen size which rendition to be picked up and generate thet scene7 ulr dynamically [if img tag is used in html], else picture tag can be used where we can hardcode different renditions for different endpoints [tab/mobile/desktop].

 

Eaxample:

1) http://<server>.scene7.com/is/content/<company>/<filename>.some-rendition.format

2) http://<server>.scene7.com/is/content/<company>/<filename>/preset-name

 

In case needs details on how to integrate dynamic media with aem click here

 

Regards

Praveen

View solution in original post

2 Replies

Avatar

Level 3

Hi,

 

Here you need to choose an image preset that is responsive (designated by the RESS button after you select it).

 

There is a step by step documentation available which describes how you can get the responsive images with dynamic media.

 

Reference:- https://experienceleague.adobe.com/docs/experience-manager-64/assets/dynamic/image-presets.html?lang...

 

Thanks 

Avatar

Correct answer by
Level 4

We define some required renditions [presets]  in Dynamic media.

Now when any image is uploaded, it dynamically generates same image of those all renditions.

It generates URL for all renditions and which ever url is used it shows that specific rendition only

 

Now from Site our custom JS should take care of responsive functionality and decide based on screen size which rendition to be picked up and generate thet scene7 ulr dynamically [if img tag is used in html], else picture tag can be used where we can hardcode different renditions for different endpoints [tab/mobile/desktop].

 

Eaxample:

1) http://<server>.scene7.com/is/content/<company>/<filename>.some-rendition.format

2) http://<server>.scene7.com/is/content/<company>/<filename>/preset-name

 

In case needs details on how to integrate dynamic media with aem click here

 

Regards

Praveen