Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

How to auto crop an AEM image

Avatar

Employee

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?

1 Accepted Solution

Avatar

Correct answer by
Employee

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.

 

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

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.