WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

You are not logged in.

#1 06.09.2021 07:30:19

losttrip
Member

elFinder Image Upload Auto Resize

I know the Auto Resize of uploaded images functionality exists in the plugins.  But it does not seem to be working or active.  Is there something I need to do to have all images uploaded through elFinder resized?

Offline

#2 06.09.2021 08:05:26

florian
Administrator

Re: elFinder Image Upload Auto Resize

it has to be activated manually.
In modules/elfinder/ef/php/connector.wbce.php, find (2 times)

 $opts = array(

and add behind the following code

'bind' => array(
             'upload.presave' => array(
                 'Plugin.AutoResize.onUpLoadPreSave'
             )
         ),

further configuration options see the source code of the plugin (modules/elfinder/ef/php/plugins/AutoResize/plugin.php)

Last edited by florian (06.09.2021 08:05:50)


Sorgen sind wie Nudeln: man macht sich meist zu viele.

Offline

Liked by:

losttrip

#3 09.09.2021 01:46:19

losttrip
Member

Re: elFinder Image Upload Auto Resize

Thank you!
Was this information made available to the forum users somewhere?  I'm sure others would be interested.

Offline

Board footer

up