|
7 | 7 | use Spatie\ImageOptimizer\Optimizers\Jpegoptim; |
8 | 8 |
|
9 | 9 | return [ |
10 | | - /** |
| 10 | + /* |
11 | 11 | * When calling `optimize` the package will automatically determine which optimizers |
12 | 12 | * should run for the given image. |
13 | 13 | */ |
14 | 14 | 'optimizers' => [ |
15 | 15 |
|
16 | 16 | Jpegoptim::class => [ |
17 | 17 | '--strip-all', // this strips out all text information such as comments and EXIF data |
18 | | - '--all-progressive' // this will make sure the resulting image is a progressive one |
| 18 | + '--all-progressive', // this will make sure the resulting image is a progressive one |
19 | 19 | ], |
20 | 20 |
|
21 | 21 | Pngquant::class => [ |
22 | | - '--force' // required parameter for this package |
| 22 | + '--force', // required parameter for this package |
23 | 23 | ], |
24 | 24 |
|
25 | 25 | Optipng::class => [ |
26 | 26 | '-i0', // this will result in a non-interlaced, progressive scanned image |
27 | 27 | '-o2', // this set the optimization level to two (multiple IDAT compression trials) |
28 | | - '-quiet' // required parameter for this package |
| 28 | + '-quiet', // required parameter for this package |
29 | 29 | ], |
30 | 30 | Svgo::class => [ |
31 | | - '--disable=cleanupIDs' // disabling because it is know to cause troubles |
| 31 | + '--disable=cleanupIDs', // disabling because it is know to cause troubles |
32 | 32 | ], |
33 | 33 |
|
34 | 34 | Gifsicle::class => [ |
35 | 35 | '-b', // required parameter for this package |
36 | | - '-O3' // this produces the slowest but best results |
| 36 | + '-O3', // this produces the slowest but best results |
37 | 37 | ], |
38 | 38 | ], |
39 | 39 |
|
40 | | - /** |
| 40 | + /* |
41 | 41 | * The maximum time in seconds each optimizer is allowed to run separately. |
42 | 42 | */ |
43 | 43 | 'timeout' => 60, |
44 | 44 |
|
45 | | - /** |
| 45 | + /* |
46 | 46 | * If set to `true` all output of the optimizer binaries will be appended to the default log. |
47 | 47 | * You can also set this on an class that implements `Psr\Log\LoggerInterface`. |
48 | 48 | */ |
|
0 commit comments