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