From bb497cd182cb0eea33f2d83d4bdae8a6b62a1e0b Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 26 Sep 2023 18:42:08 +0200 Subject: [PATCH] wip #6300 @0.25 --- src/CommandLine/Imagemagick.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/CommandLine/Imagemagick.php b/src/CommandLine/Imagemagick.php index e973811..b3946c5 100644 --- a/src/CommandLine/Imagemagick.php +++ b/src/CommandLine/Imagemagick.php @@ -107,4 +107,14 @@ class Imagemagick extends CommandLine $cl->execute(); } + public static function blur($image, $dest, $radius = 0, $sigma = 8) + { + $cl = new self(); + $cl->setArg(null, $image); + $cl->setManualArg('-channel RGBA'); + $cl->setManualArg('-blur ' . $radius . 'x' . $sigma); + $cl->setArg(null, $dest); + $cl->execute(); + } + } -- 2.39.5