]> _ Git - cubist_util.git/commitdiff
wip #6300 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 26 Sep 2023 16:42:08 +0000 (18:42 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 26 Sep 2023 16:42:08 +0000 (18:42 +0200)
src/CommandLine/Imagemagick.php

index e973811d9f7d9639f748e67389f45090c5c880b6..b3946c552232f06c6633d8351df3ee2f1840b7a0 100644 (file)
@@ -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();
+    }
+
 }