Build assets image API return image rendition for a specific screen

Avatar

Avatar
Validate 1
Level 1
daf99
Level 1

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
daf99
Level 1

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
daf99
Level 1

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)

Avatar

Avatar
Establish
MVP
Nupur_Jain
MVP

Likes

165 likes

Total Posts

186 posts

Correct reply

76 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Establish
MVP
Nupur_Jain
MVP

Likes

165 likes

Total Posts

186 posts

Correct reply

76 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 25
View profile
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)