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
- Optimize images on upload or after processing (files in
fileadmin/_processed_/
) - Binaries, paths and their parameters are configurable
Debian/Ubuntu: apt-get install optipng jpegoptim libjpeg-turbo-progs gifsicle
svgo is installable via NPM npm install -g svgo
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',
],
];
- Available parameters for gifsicle are found here.
- Available parameters for jpegoptim are found here.
- Available parameters for cwebp are found here.
- Commands are tested in the Extension Settings module
- Logging API: See file/database log