Skip to main content
Naidu_Jakkana
Level 2
Oct 16, 2015 2:27 AM UTC
Solved

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

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]

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Naidu_Jakkana
Naidu_JakkanaAccepted solution
Level 2
Oct 16, 2015 2:27 AM UTC

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

2 replies

Naidu_Jakkana
Naidu_JakkanaAuthorAccepted solution
Level 2
Oct 16, 2015 2:27 AM UTC

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

Translate
wisemage_
Level 2
Mar 2, 2016 4:37 PM UTC

Hi Naidu,

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

Translate