zestic / glide-optimizer
An optimizer manipulator for Glide that uses spatie/image-optimizer package.
Fund package maintenance!
YannikFirre
Requires
- league/glide: ^1.5 || ^2.0
- psr/log: ^1.0 | ^2.0 | ^3.0
- spatie/image-optimizer: ^1.7
This package is auto-updated.
Last update: 2024-12-11 20:32:03 UTC
README
This manipulator uses spatie/image-optimizer package to minify resources.
Forked from https://github.com/infinityweb/glide-optimizer
Installation
-
Recommend convert packages: Look in the Spatie installation instructions
-
Require this package with composer:
composer require zestic/glide-optimizer
Usage
$server = League\Glide\ServerFactory::create([ 'source' => 'path/to/source/folder', 'cache' => 'path/to/cache/folder', ]); $manipulators = $server->getApi()->getManipulators(); $manipulators[] = new Zestic\Glide\Optimizer\OptimizerManipulator(); $server->getApi()->setManipulators($manipulators);
For better optimization use imagick driver.