From: Vincent Vanwaelscappel Date: Tue, 26 Sep 2023 16:42:08 +0000 (+0200) Subject: wip #6300 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=bb497cd182cb0eea33f2d83d4bdae8a6b62a1e0b;p=cubist_util.git wip #6300 @0.25 --- 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(); + } + }