How to Access Image Rendition in AEM | Community
Skip to main content
Level 2
Oct 20, 2016 11:58 AM UTC
Solved

How to Access Image Rendition in AEM

[Thread Edited By Adobe]

/*Don’t forget to meet and greet your fellow peers virtually by telling them about yourself here. 

Go ahead and to it now: https://adobe.ly/3eDnB4v */

 

Actual Post:

we have different renditions of image created in dam by Dam Workflow in our project. Now when we want to access an image in page how will we know which rendition to access dynamically depending on the device. Is it something which UI decides or is it something AEM decides. And how does it work with dispatcher.

Any help is highly appreciated.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 20, 2016 12:51 PM UTC

See this section of the docs: 

https://docs.adobe.com/docs/en/aem/6-2/author/assets/managing-assets-touch-ui.html

To select different renditions - use the URL that corresponds to the image. Each rendition will have a different URL. 

As far a dynamic rendering of different images based on the device, I am checking that and will post back (or make sure someone else does). 

10 replies

Level 2
Oct 11, 2018 5:53 AM UTC
manoj_singh3
New Participant
Sep 21, 2018 10:12 AM UTC

Hi Ekta,

Kindly share the sample code along with configurations.

Translate
Level 2
Aug 16, 2018 12:38 PM UTC

Hi,

We can achieve this using adaptive image component. I can share the sample code and configuration, if required.

Translate
kumarsampath_r
New Participant
Jun 23, 2018 4:58 PM UTC

Hi Scott,

I know am responding on a pretty old thread.

But any pointers towards -

​will be really helpful

Translate
jameswilk
New Participant
Apr 5, 2018 3:54 PM UTC

How do you do this in HTL?

Translate
Level 2
Oct 21, 2016 8:34 AM UTC
        Thanks a lot for your help
Translate
smacdonald2008
Level 10
Oct 20, 2016 3:40 PM UTC

For AEM Assets - i recommend that you watch this Ask the AEM Community Experts on Assets as well:

http://scottsdigitalcommunity.blogspot.com/2016/09/ask-aem-community-expert-session-best.html

Translate
Employee
Oct 20, 2016 1:36 PM UTC

Are you accessing the uploaded image by file reference ? Or you are showing it using OOTB Image / Text & Image /Adaptive Image components.

If you are using OOTB components to show the image it will automatically show the best rendition as per the resolution of the screen.

You can use selectors with image path for accessing image rendition based on your requirements.

 

For more information , you can refer following

https://helpx.adobe.com/experience-manager/using/aem-dam-image-components.html

https://docs.adobe.com/docs/en/aem/6-2/develop/mobile-web/responsive.html#Scaling Images for the Current Viewport Size

Translate
Feike_Visser1
Employee
Oct 20, 2016 1:21 PM UTC
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 20, 2016 12:51 PM UTC

See this section of the docs: 

https://docs.adobe.com/docs/en/aem/6-2/author/assets/managing-assets-touch-ui.html

To select different renditions - use the URL that corresponds to the image. Each rendition will have a different URL. 

As far a dynamic rendering of different images based on the device, I am checking that and will post back (or make sure someone else does). 

Translate