Dynamic Media Dynamic Renditions are incorrect for assets with the same name
After bulk uploading a large amount of assets to AEM Assets, I noticed that the Dynamic Renditions for some assets with the same name were getting "mixed up" - they have the wrong image content in the renditions.
For example:
I upload two assets: /content/dam/page1/HeroImage.png and /content/dam/page2/HeroImage.png.
Dynamic Media requires unique filenames, so these were created in DM as HeroImage.png and HeroImage-1.png respectively.
When I look at the Dynamic Renditions in AEM Assets for /content/dam/page1/HeroImage.png, it's showing the HeroImage-1.png renditions.
What is the correct workaround for this? It's not realistic to expect every asset in the DAM to have a unique name.