Image optimization

Administration tool ::: tool_imageoptimize
Maintained by Igor Sazonov
Images compression/optimization on uploading or updating Moodle hooks

Image optimization 1.0.2

Moodle 3.8, 3.9
Released: Tuesday, 9 June 2020, 12:21 AM

Image optimize/compress tool for Moodle

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.

Requirements

Moodle

Moodle version 3.8+

Working with Moodle 3.8+ is possible because of MDL-35773.

Server

UNIX backed OS (not Windows or MacOS for the moment): Ubuntu/Debian, CentOS, Fedora.

PHP

PHP version 7.2.0+

Install

Server packages

Debian/Ubuntu

```$bash sudo apt-get install jpegoptim

sudo apt-get install optipng

sudo apt-get install gifsicle

sudo apt-get install webp


#### Fedora/RHEL/CentOS ```$bash sudo dnf install jpegoptim sudo dnf install optipng sudo dnf install gifsicle sudo dnf install libwebp-tools

PHP

PHP core exec() function enabled (excluded from disable_functions directive in php.ini)

Code install

  1. Download with any cases below
    1. Go to Moodle plugin page and download ZIP file with the latest version
    2. Download here
  2. As an administrator go this way: Site administration -> Plugins -> Install plugins
  3. Drop or choose a ZIP file to the ZIP package field, click Install plugin from the ZIP file

Credits

  1. The plugin using composer package spatie/image-optimizer. Thanks to Freek Van der Herten
  2. jpegoptim
  3. OptiPNG
  4. Gifsicle
  5. WebP

Languages

  1. English
  2. Russian
  3. Spanish

License

Moodle admin tool ImageOptimize is licensed under GNU General Public License v3 (or later).

Author

Igor Sazonov (sovletig@gmail.com)

Version information

Version build number
2020060800
Version release name
1.0.2
Maturity
Stable version
MD5 Sum
74125f50a236e2cc0aed96968d55e3f0
Supported software
Moodle 3.8, Moodle 3.9
  • Latest release for Moodle 3.8
  • Latest release for Moodle 3.9

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type Administration tool

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "mytool") in the "admin/tool" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation