Skip to content

christophlehmann/imageoptimizer

Repository files navigation

TYPO3 ImageOptimizer Extension

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

About

TYPO3 Extension for lossless image optimization with binaries of your choice.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 16

Languages