Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

How to make dynamic media image responsive

LaMind3
Level 2
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. 

AEM 6.5.5.0 Dynamic Media Scene7
1 Accepted Solution
praveenjain
Correct answer by
Level 4
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
shaileshb584084
Level 3
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 

praveenjain
Correct answer by
Level 4
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