From 06c47c945373ce530840fc14be26db7081c38e29 Mon Sep 17 00:00:00 2001 From: pawellewandowski Date: Fri, 21 Nov 2014 23:17:35 +0100 Subject: [PATCH] Adding blur option --- Adapter/GD.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Adapter/GD.php b/Adapter/GD.php index b63c734..4a7d239 100644 --- a/Adapter/GD.php +++ b/Adapter/GD.php @@ -118,6 +118,13 @@ public function negate() return $this; } + public function blur($p) + { + for ($i = 1; $i <= $p; $i++) + imagefilter($this->resource, IMG_FILTER_GAUSSIAN_BLUR); + return $this; + } + /** * @inheritdoc */ @@ -126,7 +133,7 @@ public function brightness($brightness) imagefilter($this->resource, IMG_FILTER_BRIGHTNESS, $brightness); return $this; } - + /** * @inheritdoc */