@@ 255-262 (lines=8) @@ | ||
252 | * |
|
253 | * @return $this |
|
254 | */ |
|
255 | public function blur(int $blur) |
|
256 | { |
|
257 | if ($blur < 0 || $blur > 100) { |
|
258 | throw InvalidManipulation::valueNotInRange('blur', $blur, 0, 100); |
|
259 | } |
|
260 | ||
261 | return $this->addManipulation('blur', $blur); |
|
262 | } |
|
263 | ||
264 | /** |
|
265 | * @param int $pixelate A value between 0 and 1000 |
|
@@ 333-340 (lines=8) @@ | ||
330 | * |
|
331 | * @return $this |
|
332 | */ |
|
333 | public function quality(int $quality) |
|
334 | { |
|
335 | if ($quality < 0 || $quality > 100) { |
|
336 | throw InvalidManipulation::valueNotInRange('quality', $quality, 0, 100); |
|
337 | } |
|
338 | ||
339 | return $this->addManipulation('quality', $quality); |
|
340 | } |
|
341 | ||
342 | /** |
|
343 | * @param string $format |