@@ -30,6 +30,9 @@ discard block |
||
| 30 | 30 | return new static($pathToImage); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param string $tempDir |
|
| 35 | + */ |
|
| 33 | 36 | public function setTemporaryDirectory($tempDir) |
| 34 | 37 | { |
| 35 | 38 | $this->temporaryDirectory = $tempDir; |
@@ -139,6 +142,9 @@ discard block |
||
| 139 | 142 | return ! is_null($this->manipulations->getFirstManipulationArgument('optimize')); |
| 140 | 143 | } |
| 141 | 144 | |
| 145 | + /** |
|
| 146 | + * @param string $path |
|
| 147 | + */ |
|
| 142 | 148 | protected function performOptimization($path, array $optimizerChainConfiguration) |
| 143 | 149 | { |
| 144 | 150 | $optimizerChain = OptimizerChainFactory::create(); |
@@ -154,6 +160,9 @@ discard block |
||
| 154 | 160 | $optimizerChain->optimize($path); |
| 155 | 161 | } |
| 156 | 162 | |
| 163 | + /** |
|
| 164 | + * @param string $outputPath |
|
| 165 | + */ |
|
| 157 | 166 | protected function addFormatManipulation($outputPath) |
| 158 | 167 | { |
| 159 | 168 | if ($this->manipulations->hasManipulation('format')) { |