image-optimizer
Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.
File Explorer
Download Latest Version (.zip)- FUNDING.yml
- CommandNotFound.php
- Exception.php
- ExtensionTypeGuesser.php
- GdTypeGuesser.php
- SmartTypeGuesser.php
- TypeGuesser.php
- ChainOptimizer.php
- ChangedOutputOptimizer.php
- Command.php
- CommandOptimizer.php
- Optimizer.php
- OptimizerFactory.php
- SmartOptimizer.php
- SuppressErrorOptimizer.php
- WrapperOptimizer.php
- ImageAssertion.php
- .gitkeep
- sample-flip.png
- sample-low-quality.jpg
- sample-negative.png
- sample.gif
- sample.jpg
- sample.png
- sample.svg
- samplepng
- AbstractTypeGuesserTest.php
- ExtensionTypeGuesserTest.php
- GdTypeGuesserTest.php
- SmartTypeGuesserTest.php
- CommandTest.php
- ImageSimilarityJudge.php
- ImageSimilarityJudgeTest.php
- OptimizersTest.php
- SmartOptimizerTest.php
- bootstrap.php
- .gitattributes
- .gitignore
- .travis.yml
- CHANGELOG.md
- composer.json
- LICENSE
- phpunit.xml
- README.md
- Vagrantfile
# Installation Guide
1. Get the code
git clone https://github.com/psliwa/image-optimizer
Downloads the entire project code from GitHub to your computer.
cd image-optimizer
Moves into the project folder you just downloaded.
2. PHP (Composer)
Easy RecommendedPrerequisites
composer require ps/image-optimizer
Type this command into your terminal and run it.
Run it with a built-in server like php -S localhost:8000, then open http://localhost:8000 in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
