Skip to content

Glide Optimizer Manipulator uses spatie/image-optimizer package to minify resources.

License

Notifications You must be signed in to change notification settings

zestic/glide-optimizer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glide Optimizer Manipulator

Software License Packagist Version

This manipulator uses spatie/image-optimizer package to minify resources.

Forked from https://github.com/infinityweb/glide-optimizer

Installation

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.

About

Glide Optimizer Manipulator uses spatie/image-optimizer package to minify resources.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%