Build assets image API return image rendition for a specific screen

daf99

29-07-2020

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?

Accepted Solutions (1)

Accepted Solutions (1)

Nupur_Jain

MVP

29-07-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.htm...

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-rendit.... This might help.

 

Thanks!

Nupur

 

 

Answers (0)