Expand my Community achievements bar.

SOLVED

Get available smart crop renditions for an asset in Java

Avatar

Level 2

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 ?

1 Accepted Solution

Avatar

Correct answer by
Level 4

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?lan...

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

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?lan...