Get available smart crop renditions for an asset in Java | Adobe Higher Education
Skip to main content
sutty1000
Level 2
June 1, 2022
Répondu

Get available smart crop renditions for an asset in Java

I'm trying to get a list of valid smart crop renditions for an image in my AEM Java code. I can get the standard static renditions (e.g. thumbnails) by adapting the resource to the Asset interface but this does not tell me the valid smart crop options the image has. Does anybody know how I can get these in Java ?

Ce sujet a été fermé aux réponses.
Meilleure réponse par vikasbharti

The smart crop feature is specific to AEM Dynamic media, and renditions are pulled directly from the DM cloud. Under CRX, the asset metadata would not show smart crop renditions. For generating the smart crop URL for an asset, apply the processing profile[0] on the folder first and then upload assets. Once assets are processed under the Renditions section, you'll see the Smart Crop option, and if the asset is published, the option to generate the URL will show up. 

[0] https://experienceleague.adobe.com/docs/experience-manager-65/assets/dynamic/image-profiles.html?lang=en#creating-image-profiles

1 commentaire

vikasbhartiAdobe EmployeeRéponse
Adobe Employee
June 3, 2022

The smart crop feature is specific to AEM Dynamic media, and renditions are pulled directly from the DM cloud. Under CRX, the asset metadata would not show smart crop renditions. For generating the smart crop URL for an asset, apply the processing profile[0] on the folder first and then upload assets. Once assets are processed under the Renditions section, you'll see the Smart Crop option, and if the asset is published, the option to generate the URL will show up. 

[0] https://experienceleague.adobe.com/docs/experience-manager-65/assets/dynamic/image-profiles.html?lang=en#creating-image-profiles