From: Michael J. Rubinsky Date: Fri, 13 Aug 2010 00:19:27 +0000 (-0400) Subject: Do the unsharp operation later at the end of the command string X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bf16e29350bd80d970275ec1b99665e9d7526379;p=horde.git Do the unsharp operation later at the end of the command string --- 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; }