I am working on AEM Assets(AEMaaCS) with AEM Sites(AMS), where I have connected AEM Assets to AEM Sites via the Dynamic Media Open API.
I added the Image V3 component to a page, and in the Smart Cropping section, I see a list of ratios. The issue is that this list is coming from the Image V3 component and is hardcoded. However, I want this list to be generated dynamically from AEM Assets.
How can I achieve this?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
To make the Smart Cropping ratio list dynamic in your Image v3 component, fetch the smart crop profiles directly from AEM assets dynamic media rather than relying on the hardcoded list. Try querying the asset’s metadata, using either the AEM assets metadata API, the DAM JCR metadata (/content/dam/<asset>/jcr:content/metadata.1.json), or DMwoAPI endpoints. Update your dialog to populate options from these profiles, so authors always see the current smart crops defined in Assets.
Hi @Sady_Rifat ,
I tried to check it, indeed it is hard coded in the dialog. I would suggest to raise this with Adobe in a support ticket.
Thanks!
To make the Smart Cropping ratio list dynamic in your Image v3 component, fetch the smart crop profiles directly from AEM assets dynamic media rather than relying on the hardcoded list. Try querying the asset’s metadata, using either the AEM assets metadata API, the DAM JCR metadata (/content/dam/<asset>/jcr:content/metadata.1.json), or DMwoAPI endpoints. Update your dialog to populate options from these profiles, so authors always see the current smart crops defined in Assets.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies