@@ 323-330 (lines=8) @@ | ||
320 | * |
|
321 | * @throws InvalidManipulation |
|
322 | */ |
|
323 | public function blur(int $blur) |
|
324 | { |
|
325 | if ($blur < 0 || $blur > 100) { |
|
326 | throw InvalidManipulation::valueNotInRange('blur', $blur, 0, 100); |
|
327 | } |
|
328 | ||
329 | return $this->addManipulation('blur', $blur); |
|
330 | } |
|
331 | ||
332 | /** |
|
333 | * @param int $pixelate A value between 0 and 1000 |
|
@@ 407-414 (lines=8) @@ | ||
404 | * |
|
405 | * @throws InvalidManipulation |
|
406 | */ |
|
407 | public function quality(int $quality) |
|
408 | { |
|
409 | if ($quality < 0 || $quality > 100) { |
|
410 | throw InvalidManipulation::valueNotInRange('quality', $quality, 0, 100); |
|
411 | } |
|
412 | ||
413 | return $this->addManipulation('quality', $quality); |
|
414 | } |
|
415 | ||
416 | /** |
|
417 | * @param string $format |