applicationcontext image Jahia 7.3 Legacy

Crop image - Changing default sizes options


I want to change the default sizes when selecting the option crop image. Is there an easy way to do it without redeploying application?


Yes, the sizes can be easily changed. To do so you just need to override the following ImageCrop.predefinedSizes list definition from our core package:

<util:list id="ImageCrop.predefinedSizes">
        <!-- each value is a String of format [width]x[height] -->

Once you edit this list with the values you want you can simply add this list definition in digital-factory-config/jahia/applicationcontext-custom.xml and then restart Jahia.