christophlehmann/imageoptimizer
最新稳定版本:5.1.1
Composer 安装命令:
composer require christophlehmann/imageoptimizer
包简介
Optimize uploaded/processed images with binaries of your choice
README 文档
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
统计信息
- 总下载量: 481.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 45
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2017-02-20
