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