Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

How to add custom aspect ratio to image in AEM6 new UI

Avatar

Level 2

Hi Team,

we have been trying to add another aspect ratio to image component.  There are some default aspect ratios  and those are defined in /etc/clientlibs/granite/coralui/optional/imageeditor/js/imageeditor/plugins/Crop.js

i was trying to add extra aspect ratio here but not getting reflected .  is there any other way to do this ?  

 

 [img]crop.png[/img]

1 Accepted Solution

Avatar

Correct answer by
Level 2

We were able to resolve this by adding new aspect ratios at /etc/clientlibs/granite/coralui2/optional/imageeditor/js/cui-imageeditor.js .

View solution in original post

2 Replies

Avatar

Correct answer by
Level 2

We were able to resolve this by adding new aspect ratios at /etc/clientlibs/granite/coralui2/optional/imageeditor/js/cui-imageeditor.js .

Avatar

Level 2

Hi Naidu,

Can you share your "cui-imageeditor.js" ?