With this admin tool plugin it is possible to save your hard disk space through optimization (compressing) uploaded images sizes (up to 80%) without huge quality cut. It works on a Moodle based create and update hooks. You just have to install some server tools on your server.
Moodle version 3.8+
Working with Moodle 3.8+ is possible because of MDL-35773.
UNIX backed OS (not Windows or MacOS for the moment): Ubuntu/Debian, CentOS, Fedora.
PHP version 7.2.0+
sudo apt-get install jpegoptim
sudo apt-get install optipng
sudo apt-get install gifsicle
sudo apt-get install webp
sudo dnf install jpegoptim
sudo dnf install optipng
sudo dnf install gifsicle
sudo dnf install libwebp-tools
PHP core exec() function enabled (excluded from disable_functions directive in php.ini)
- Download with any cases below
- Go to Moodle plugin page and download ZIP file with the latest version
- Download here
- As an administrator go this way:
Site administration -> Plugins -> Install plugins
- Drop or choose a ZIP file to the ZIP package field, click Install plugin from the ZIP file
- The plugin using composer package spatie/image-optimizer. Thanks to Freek Van der Herten
- jpegoptim
- OptiPNG
- Gifsicle
- WebP
- English
- Russian
- Spanish
Moodle admin tool ImageOptimize is licensed under GNU General Public License v3 (or later).