This contrib will allow you to automatically resize images when uploaded thru the file manager (one of the rich textarea buttons).
This is not a real contrib or P4A object but simply a patch, we still need to define the interface of the final implementation but this page will help you configuring the behaviour.
crea themes/default/widgets/rich_textarea/plugins/filemanager/connectors/php/p4a_image_resize_config.php with something like this:
<?php // enable/disable resizing $Config['EnableImageResize'] = false; // thumbnails dimensions $Config['ImageSize']['small'] = "200x150"; $Config['ImageSize']['medium'] = "300x225"; $Config['ImageSize']['large'] = "400x300"; // this line is used to reduce the original image size $Config['ImageSize']['__original__'] = "800x800"; ?>
change the configuration as you want to enable this feature.