AEM 6.1 Touch UI: how to configure aspect ratios for cropping images? | Community
Skip to main content
October 16, 2015
Solved

AEM 6.1 Touch UI: how to configure aspect ratios for cropping images?

  • October 16, 2015
  • 13 replies
  • 4294 views

If I edit an image component (e.g. http://localhost:4502/editor.html/content/geometrixx/en/products.html, the "Triangle"), I get a selectbox with aspect ratios (Free Hand, 2:3, Square, ...). How can I add/delete aspect ratios to this selectbox?

Thanks,
Anne

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

Here is a pic of the nodes - other one disappeared: 

Hope this helps.... 

13 replies

Lokesh_Shivalingaiah
Level 10
January 22, 2016

you need in the classic UI or touch UI ?

smacdonald2008
smacdonald2008Accepted solution
Level 10
March 2, 2016

Here is a pic of the nodes - other one disappeared: 

Hope this helps.... 

Adobe Employee
April 11, 2016

Hi,

this only helps for components but not for the touchUI AssetEditor at the /assetdetails.html page (/libs/dam/gui/content/assets/editors/image).

e.g. http://localhost:4502/assetdetails.html/content/dam/geometrixx/portraits/scott_reynolds.jpg

Is there any solution to config this aspected ratios without overriding the default-settings inside the coral.js?

 

CUI.imageeditor.plugins.Crop.ASPECT_RATIOS = [

  {name: 'free_hand', ratio: 0},

  {name: '2_to_3', ratio: 0.67},

  {name: '3_to_5', ratio: 0.6},

  {name: '16_to_9', ratio: 0.5625},

  {name: 'square', ratio: 1}

];