Skip to content

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

License

Notifications You must be signed in to change notification settings

YannikFirre/glide-optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glide Optimizer Manipulator

Software License Packagist Version

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

Inspired by https://github.com/approached/laravel-image-optimizer

Installation

  • Recommend convert packages:
sudo apt-get install pngquant gifsicle jpegoptim
  • Require this package with composer:
composer require infinityweb/glide-optimizer

Usage

$server = League\Glide\ServerFactory::create([
    'source' => 'path/to/source/folder',
    'cache' => 'path/to/cache/folder',
]);

$manipulators = $server->getApi()->getManipulators();
$manipulators[] = new Infinityweb\Glide\Optimizer\OptimizerManipulator();

$server->getApi()->setManipulators($manipulators);

For better optimization use imagick driver.

About

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

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages