Skip to main content
Community_Admin
Adobe Employee
Adobe Employee
Oct 16, 2015 2:26 AM UTC
Solved

How to auto crop an AEM image

How do you auto crop an uploaded image?  I see that there are workflow steps and it seems there might be a couple that can create new assets, but where is the documentation for that? 

 

Also, how do you set the auto crop aspect ratio for the html4image widget?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Community_Admin
Community_AdminAccepted solution
Adobe Employee
Oct 16, 2015 2:26 AM UTC

You can see example at the existing image component by adding more aspect ratios using the "cropConfig" node. Please reference one under - "/libs/cq/packaging/components/pack/definition/dialog/items/tabs/item s/tab3/cropConfig". In this manner, you can add in more option and specify the required height/width.

 

Source image file 6225 not available

1 reply

Community_Admin
Adobe Employee
Community_AdminAdobe EmployeeAuthorAccepted solution
Adobe Employee
Oct 16, 2015 2:26 AM UTC

You can see example at the existing image component by adding more aspect ratios using the "cropConfig" node. Please reference one under - "/libs/cq/packaging/components/pack/definition/dialog/items/tabs/item s/tab3/cropConfig". In this manner, you can add in more option and specify the required height/width.

 

Source image file 6225 not available

Translate