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/items/tab3/cropConfig". In this manner, you can add in more option and specify the required height/width.
Creating a different renditions (or different size images) at the time of uploading dam asset can be achieved by modifying the
existing DAM workflow.
Follow the given steps to modify DAM workflow.
- Go to workflow console
- Go to Models Tab
- Find "DAM Update Asset" workflow and edit the workflow It will take you to the detailed page.
- Find "Thumbnail creation" process step, Double click on it
- A dialog will open; Go to Second Tab (Process). There you will find "Arguments" for aspect ratios of images
- Here you can specify Aspect Ratio at which you want to auto crop the dam assest while uploading.
- Click Save.
These steps are same for both the CQ version 5.4 and 5.5 .