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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Core Image Component - Adaptive Servlet

Rajashankar
Level 4
Level 4

Hi,

I have a basic question on Responsive Feature provided with Core Image Component. 

 

When the size of screen changes the soruce of image also changes accoridngly with respect to the width defined in template design for image component

Example:

<img class="cmp-image__image" itemprop="contentUrl" data-cmp-hook-image="image" alt="" src="/content/we-retail/language-masters/en/products/equipment/_jcr_content/root/responsivegrid/image.coreimg.82.300.png/1595274233631/wknd-logo-dk.png">

 

My Doubt is

a) was the servlet everytime fectching the original image component and applies the width Size thereby compressing and displaying it

or

b) Is the adaptive servlet picking up image from different rendition of the available image based on nearly matching width?

Rajashankar_0-1595279071873.png

 

 

I know the ACS Commons Named Image Servlet picks up original image and applies different sizing/cropping etc on top of that at run time is the Adaptive Servlet works same way?

 

Please suggest

 

1 Accepted Solution
Nupur_Jain
Correct answer by
Community Advisor
Community Advisor

Hi @Rajashankar 

 

Wcm Core Image Component works in the similar way acs commons one. If you look at the image page path :

<img class="cmp-image__image" itemprop="contentUrl" data-cmp-hook-image="image" alt="" src="/content/we-retail/language-masters/en/products/equipment/_jcr_content/root/responsivegrid/image.coreimg.82.300.png/1595274233631/wknd-logo-dk.png">

 

This basically calls the Core Adaptive Servlet which depending upon the factory OSGI configuration ""AEM Core WCM Components Adaptive Image Servlet Mapping Configuration"" and for "coreimg" selector applies different rules for transformation.
Screenshot from 2020-07-21 15-43-08.png

 

You can refer https://helpx.adobe.com/in/experience-manager/6-3/sites/developing/using/responsive.html#Understandi... and https://github.com/adobe/aem-core-wcm-components/wiki/the-adaptive-image-servlet to read more on how adaptive servlet works and how can you define different transformation configuration.

 

Hope it helps!

Thanks!

Nupur

View solution in original post

0 Replies
Nupur_Jain
Correct answer by
Community Advisor
Community Advisor

Hi @Rajashankar 

 

Wcm Core Image Component works in the similar way acs commons one. If you look at the image page path :

<img class="cmp-image__image" itemprop="contentUrl" data-cmp-hook-image="image" alt="" src="/content/we-retail/language-masters/en/products/equipment/_jcr_content/root/responsivegrid/image.coreimg.82.300.png/1595274233631/wknd-logo-dk.png">

 

This basically calls the Core Adaptive Servlet which depending upon the factory OSGI configuration ""AEM Core WCM Components Adaptive Image Servlet Mapping Configuration"" and for "coreimg" selector applies different rules for transformation.
Screenshot from 2020-07-21 15-43-08.png

 

You can refer https://helpx.adobe.com/in/experience-manager/6-3/sites/developing/using/responsive.html#Understandi... and https://github.com/adobe/aem-core-wcm-components/wiki/the-adaptive-image-servlet to read more on how adaptive servlet works and how can you define different transformation configuration.

 

Hope it helps!

Thanks!

Nupur

View solution in original post