@@ 163-171 (lines=9) @@ | ||
160 | /** |
|
161 | * @return void |
|
162 | */ |
|
163 | protected function png(){ |
|
164 | imagepng( |
|
165 | $this->image, |
|
166 | $this->options->cachefile, |
|
167 | in_array($this->options->pngCompression, range(-1, 9), true) |
|
168 | ? $this->options->pngCompression |
|
169 | : -1 |
|
170 | ); |
|
171 | } |
|
172 | ||
173 | /** |
|
174 | * Jiff - like... JitHub! |
|
@@ 184-192 (lines=9) @@ | ||
181 | /** |
|
182 | * @return void |
|
183 | */ |
|
184 | protected function jpg(){ |
|
185 | imagejpeg( |
|
186 | $this->image, |
|
187 | $this->options->cachefile, |
|
188 | in_array($this->options->jpegQuality, range(0, 100), true) |
|
189 | ? $this->options->jpegQuality |
|
190 | : 85 |
|
191 | ); |
|
192 | } |
|
193 | ||
194 | } |
|
195 |