@@ -72,6 +72,9 @@ |
||
72 | 72 | } |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @param string $inputFile |
|
77 | + */ |
|
75 | 78 | private function createGlideServer($inputFile, string $watermarkPath = null): Server |
76 | 79 | { |
77 | 80 | $config = [ |
@@ -124,6 +124,9 @@ discard block |
||
124 | 124 | return ! is_null($this->manipulations->getFirstManipulationArgument('optimize')); |
125 | 125 | } |
126 | 126 | |
127 | + /** |
|
128 | + * @param string $path |
|
129 | + */ |
|
127 | 130 | protected function performOptimization($path, array $optimizerChainConfiguration) |
128 | 131 | { |
129 | 132 | $optimizerChain = OptimizerChainFactory::create(); |
@@ -139,6 +142,9 @@ discard block |
||
139 | 142 | $optimizerChain->optimize($path); |
140 | 143 | } |
141 | 144 | |
145 | + /** |
|
146 | + * @param string $outputPath |
|
147 | + */ |
|
142 | 148 | protected function addFormatManipulation($outputPath) |
143 | 149 | { |
144 | 150 | if ($this->manipulations->hasManipulation('format')) { |
@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace Spatie\Image; |
4 | 4 | |
5 | 5 | use BadMethodCallException; |
6 | -use Spatie\Image\Exceptions\InvalidImageDriver; |
|
7 | -use Spatie\ImageOptimizer\OptimizerChainFactory; |
|
8 | 6 | use Intervention\Image\ImageManagerStatic as InterventionImage; |
7 | +use Spatie\ImageOptimizer\OptimizerChainFactory; |
|
8 | +use Spatie\Image\Exceptions\InvalidImageDriver; |
|
9 | 9 | |
10 | 10 | /** @mixin \Spatie\Image\Manipulations */ |
11 | 11 | class Image |