christophlehmann / imageoptimizer
Optimize uploaded/processed images with binaries of your choice
Package info
github.com/christophlehmann/imageoptimizer
Type:typo3-cms-extension
pkg:composer/christophlehmann/imageoptimizer
Requires
- typo3/cms-core: ^14.1
- typo3/cms-reports: ^14.1
Requires (Dev)
- a9f/fractor-composer-json: ^0.5.9
- a9f/typo3-fractor: ^0.5.9
- ergebnis/composer-normalize: ^2.50
- phpstan/phpstan: ^2.1.31
- ssch/typo3-rector: ^3.7.0
- symplify/easy-coding-standard: ^13.0
- typo3/cms-backend: ^14.1
- typo3/cms-filelist: ^14.1
- typo3/cms-fluid: ^14.1
- typo3/cms-frontend: ^14.1
- typo3/cms-install: ^14.1
Replaces
- typo3-ter/imageoptimizer: 6.0.0
- dev-main
- 6.0.0
- 5.1.1
- 5.1.0
- 5.0.0
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.1.1
- 3.1.0
- 3.0.2
- 3.0.1
- 3.0.0
- 2.1.0
- 2.0.1
- 2.0.0
- 1.1.3
- 1.1.2
- 1.1.0
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- dev-dependabot/composer/ssch/typo3-rector-tw-3.13.0
- dev-dependabot/composer/a9f/fractor-composer-json-tw-0.5.10
- dev-dependabot/composer/a9f/typo3-fractor-tw-0.5.10
This package is auto-updated.
Last update: 2026-03-16 04:52:51 UTC
README
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
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
