aemassetscropdam

AEM DAM apect ratio crop


DAM editing snapshot I need to add some more fixed aspect ratio cropping shapes to my AEM 6 SP3 DAM editor (e.g. 4:3, 3:4, 9:16). There need to be a configuration option, but a cannot find something to customize this. Maybe someone of you guys have had the same problem as me and can tell me about the solution.


Solution

  • I found a way to solve this problem. If you want to have custom aspect ratio in your crop options drop down, you just need to overwrite the /etc/clientlibs/granite/coralui2/optional/imageeditor/js/cui-imageeditor.js in your project. The options for the drop down are hardcoded in this js file. see custom crop options

    The next problem will come with an update to AEM 6.1. The file cui-imageeditor.js wont exist anymore. Just a dummy file will appear in the same directory... dummy file am 6.1