christophlehmann/imageoptimizer

Optimize uploaded/processed images with binaries of your choice

Installs: 428 253

Dependents: 1

Suggesters: 0

Security: 0

Stars: 43

Watchers: 6

Forks: 23

Open Issues: 0

Type:typo3-cms-extension

5.1.0 2025-05-14 12:59 UTC

README

Latest Stable Version Total Downloads License TYPO3

Lossless image optimization. Process jpg/png/gif/svg/webp images with binaries and parameters of your choice.

Note: JPG and PNG were yesterday. If you want to serve images in new formats like avif and webp including auto detection and asynchronous generation, then imgproxy may fit your needs. #webvitals

Features

  • Optimize images on upload or after processing (files in fileadmin/_processed_/)
  • Binaries, paths and their parameters are configurable

Installation

Debian/Ubuntu: apt-get install optipng jpegoptim libjpeg-turbo-progs gifsicle

svgo is installable via NPM npm install -g svgo

Installation for optimizing webp images with cwebp

See https://developers.google.com/speed/webp/download for downloading and installation.

If the binaries are not under /usr/bin/, then add the absolute path in TYPO3's global configuration like so:

system/settings.php:

return [
    'SYS' => [
        'binSetup' => 'cwebp=/absolute/path/to/bin/cwebp',
    ],
];

Configuration options

Extension Manager configuration options

Available Parameters

  • Available parameters for gifsicle are found here.
  • Available parameters for jpegoptim are found here.
  • Available parameters for cwebp are found here.

Debugging

  • Commands are tested in the Extension Settings module
  • Logging API: See file/database log