With this transformation, you can create arbitrary image crops with a fixed aspect ratio as a variant of the source image.
With this function, it is possible to create image predefined crops as a separate version without a graphics program or the censhare image editor. The frame size and the aspect ratio of the crop are defined in Master data/Image crops. Users can select the desired cropping in the dialog.
The transformation is triggered with the Asset > Variants > Create transformation variant action.
In the Create transformation variant dialog, you can select the desired aspect ratio and area:
To configure the action and the dialog, the following module assets are required in your system:
These assets are part of the censhare standard product.
In the censhare Admin Client, do the following:
- Go to Master data/Image crops and open the configuration.
To add a new image cropping, click , select an ID and Name, and enter the desired settings:
Field | Description |
---|
Fixed aspect ratio | Enter a width x height ratio of the target image. The actual size in pixels is variable, unless you select Fixed size. |
Fixed size | Select to define an absolute height or width or both of the target image. |
Fixed width | Enter a value in pixels. You can enter only one value and leave the other empty. |
Fixed height |
- To edit a default cropping, first, enable the admin mode, and then double-click the desired entry and edit it as desired.
- Click OK to save your changes.
The manual server action allows users to perform the cropping manually.
In the censhare Admin Client, do the following:
- Go to Configuration/Modules/Transformations/Transformation variants and open Create image transformation variant.
For the General setup, see Server actions.
- In the Special setup area, configure the following:
- Click OK to save your changes.
- Update the server configuration and - if necessary - synchronize the remote servers.
The automatic server action executes the cropping automatically. The action is triggered by a defined event, for example: a new image is uploaded.