WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 06.09.2021 06:30:19

losttrip
Mitglied

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?

Online

#2 06.09.2021 07: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)

Beitrag geändert von florian (06.09.2021 07:05:50)


Code allein macht nicht glücklich. Jetzt spenden!

Offline

Liked by:

losttrip

#3 09.09.2021 00:46:19

losttrip
Mitglied

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.

Online

Fußzeile des Forums

up