Get all dynamic media renditions and fetch scene7 URL from Asset
Why is the asset.getRenditions() function in AEM only returning Static / Original renditions and not Dynamic renditions, even though I can confirm the presence of Dynamic renditions for the asset in the AEM Asset manager?
Code Snap:
private static void getDynamicRenditions(Asset asset) {
List<Rendition> renditions = asset.getRenditions();
for (Rendition rendition : renditions) {
String renditionPath = rendition.getPath();
String renditionName = rendition.getName();
}
}
Asset Renditions: We are only getting Static Renditions and original rendition but not Dynamic Rendition.
