Image resize in file manager

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.

Configuration

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.

Authors

 
image-resize-in-file-manager.txt · Last modified: 2007/01/11 23:28 by 151.92.176.5
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki