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