Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jul 3, 2017
1 parent 7909801 commit ca1f0ee
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ before_script:
- sudo apt-get install pngquant
- sudo apt-get install gifsicle
- sudo apt-get install optipng
- sudo apt-get install libjpeg-progs

script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
Expand Down
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,34 @@ You can install the package via composer:
composer require spatie/image-optimizer
```

The package will use these optimizers if they are present on your system:

- [Gifsicle](http://www.lcdf.org/gifsicle/)
- [JpegOptim](http://freecode.com/projects/jpegoptim)
- [JpegTran](http://jpegclub.org/jpegtran/)
- [Optipng](http://optipng.sourceforge.net/)
- [Pngquant](https://pngquant.org/)

Here's how to install all the optimizers on Ubuntu:

```bash
sudo apt-get install gifsicle
sudo apt-get install jpegoptim
sudo apt-get install libjpeg-prog #jpegtran
sudo apt-get install optipng
sudo apt-get install pngquant
```

And here's how to install the on MacOS (requireds both `brew` and `npm`):

```php
brew install install gifsicle
brew install jpegoptim
npm install --global jpegtran-bin
brew install install optipng
brew install install pngquant
```

## Usage

``` php
Expand Down

0 comments on commit ca1f0ee

Please sign in to comment.