diff options
author | omar <omma2289@bitbucket.org> | 2015-01-31 19:58:03 +0100 |
---|---|---|
committer | omar <omma2289@bitbucket.org> | 2015-01-31 19:58:03 +0100 |
commit | 9c855325189e7ec1ecf2f4666280af038b6cb00e (patch) | |
tree | 7e4817f62a4b21a7d6bd9ca4536243c90bc6333b | |
parent | 0779e99eeb12cb137eed77cf580add374afa71a5 (diff) |
Fixed horizontal position of watermark text when using drop shadow
-rw-r--r-- | system/libraries/Image_lib.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php index aae062e47..e056654bb 100644 --- a/system/libraries/Image_lib.php +++ b/system/libraries/Image_lib.php @@ -1331,7 +1331,7 @@ class CI_Image_lib { // Set horizontal alignment if ($this->wm_hor_alignment === 'R') { - $x_axis += $this->orig_width - ($fontwidth * strlen($this->wm_text)); + $x_axis += $this->orig_width - ($fontwidth * strlen($this->wm_text)) - $this->wm_shadow_distance; } elseif ($this->wm_hor_alignment === 'C') { |