From 9c855325189e7ec1ecf2f4666280af038b6cb00e Mon Sep 17 00:00:00 2001 From: omar Date: Sat, 31 Jan 2015 11:58:03 -0700 Subject: Fixed horizontal position of watermark text when using drop shadow --- system/libraries/Image_lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/libraries/Image_lib.php') 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') { -- cgit v1.2.3-24-g4f1b