adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
730 stars 736 forks source link

AEM 6.5.12 Dynamic media Smart Crop Auto -Incorrect Renditions Delivered Using Core Components 2.18 #2320

Open smita-herlekar opened 1 year ago

smita-herlekar commented 1 year ago

Bug Report

Current Behavior Hi Team,

On AEM 5.5.12 Dynamic media,for image V2 (Core components 2.18),the Smart Crop Auto is not scaling to the smart cropped renditions ,as per defined in the "Smart Crop " Profile.

Checked the logic at : https://github.com/adobe/aem-core-wcm-components/blob/main/content/src/content/jcr[…]/core/wcm/components/image/v2/image/clientlibs/site/js/image.js

Example http://bsoc-qa.adobecqms.net/en/adobe_qa/AmeerTest/smart-crop ,this is an image v2 component and it will keep showing the "large" smart crop rendition from 350 px onwards regardless of what we keep in smart crop profile .

It does scale down to "medium" and "small" renditions but not per the viewports we defined in the Smart crop Profile .Does the Smart Crop profile even considered for deciding which image rendition will be served?

Thanks, Smita

Expected behavior/code

The large ,medium and small renditions should be shown as per the viewports set in Image Profile

Environment

Possible Solution

Additional context / Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.

randomdude93 commented 1 year ago

@smita-herlekar were you able to fix this behaviour?