From bf16e29350bd80d970275ec1b99665e9d7526379 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 12 Aug 2010 20:19:27 -0400 Subject: [PATCH] Do the unsharp operation later at the end of the command string --- framework/Image/lib/Horde/Image/Effect/Im/Unsharpmask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Image/lib/Horde/Image/Effect/Im/Unsharpmask.php b/framework/Image/lib/Horde/Image/Effect/Im/Unsharpmask.php index 39b4ec655..477296aa7 100644 --- a/framework/Image/lib/Horde/Image/Effect/Im/Unsharpmask.php +++ b/framework/Image/lib/Horde/Image/Effect/Im/Unsharpmask.php @@ -51,7 +51,7 @@ class Horde_Image_Effect_Im_Unsharpmask extends Horde_Image_Effect $this->_params['sigma'] = ($this->_params['radius'] < 1) ? $this->_params['radius'] : sqrt($this->_params['radius']); - $this->_image->addOperation("-unsharp {$this->_params['radius']}x{$this->_params['sigma']}+{$this->_params['amount']}+{$this->_params['threshold']}"); + $this->_image->addPostSrcOperation("-unsharp {$this->_params['radius']}x{$this->_params['sigma']}+{$this->_params['amount']}+{$this->_params['threshold']}"); return true; } -- 2.11.0