Build assets image API return image rendition for a specific screen | Community
Skip to main content
daf99
Level 2
July 29, 2020
Solved

Build assets image API return image rendition for a specific screen

  • July 29, 2020
  • 1 reply
  • 2662 views

I have a requirement to build an API to make available to mobile app the images stored in AEM as assets. The tricky part is that the API must return the image rendition correct for the device screen size. 
AEM have available the methods to determine the correct image rendition for the screen?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Nupur_Jain

Hi @daf99 

 

You can use ACS's Named Image Transformer, as you are thinking to create API, with this feature, you will not have to create API end you will just have to call image path with your custom transformer.

 

Refer https://adobe-consulting-services.github.io/acs-aem-commons/features/named-image-transform/index.html

https://varunaem.blogspot.com/2019/03/acs-commons-tools-part-1.html

 

There is similar query discussed in post https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-access-image-rendition-in-aem/qaq-p/194968. This might help.

 

Thanks!

Nupur

 

 

1 reply

Nupur_Jain
Adobe Employee
Nupur_JainAdobe EmployeeAccepted solution
Adobe Employee
July 29, 2020

Hi @daf99 

 

You can use ACS's Named Image Transformer, as you are thinking to create API, with this feature, you will not have to create API end you will just have to call image path with your custom transformer.

 

Refer https://adobe-consulting-services.github.io/acs-aem-commons/features/named-image-transform/index.html

https://varunaem.blogspot.com/2019/03/acs-commons-tools-part-1.html

 

There is similar query discussed in post https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-access-image-rendition-in-aem/qaq-p/194968. This might help.

 

Thanks!

Nupur

 

 

daf99
daf99Author
Level 2
July 29, 2020

......