Add to or override the default aspect ratios provided in the image cropper

Accepted values: array

Context: Global (client/global.config.php)

You can set your own custom aspect ratios for the image crop tool. The defaults are 1:1, 3:2, 2:3, 4:3, and 3:4, but you can add to or override those by adapting the following example and adding it to livewhale/client/global.config.php.

Your aspect ratios must be expressed in whole numbers (width:height, no decimals), and you can name your custom aspect ratio (like “Profile” or “Featured” in the example).


Then, your custom list of aspect ratios will be included in the image cropping tool:

UI for custom image crop ratios