cvs: pear /Image_Transform/Driver GD.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sat, 21 Apr 2007 20:06:06 +0000 |
| Subject: | cvs: pear /Image_Transform/Driver GD.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-46066@lists.php.net to get a copy of this message | ||
dufuz Sat Apr 21 20:06:06 2007 UTC
Modified files:
/pear/Image_Transform/Driver GD.php
Log:
Fixed Bug #5067 GD:addText() should also store a copy of $this->imageHandle in
$this->old_image
http://cvs.php.net/viewvc.cgi/pear/Image_Transform/Driver/GD.php?r1=1.32&r2=1.33&diff_format=u
Index: pear/Image_Transform/Driver/GD.php
diff -u pear/Image_Transform/Driver/GD.php:1.32 pear/Image_Transform/Driver/GD.php:1.33
--- pear/Image_Transform/Driver/GD.php:1.32 Thu Apr 19 16:36:09 2007
+++ pear/Image_Transform/Driver/GD.php Sat Apr 21 20:06:06 2007
@@ -21,7 +21,7 @@
* @author Philippe Jausions <Philippe.Jausions@11abacus.com>
* @copyright 2002-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: GD.php,v 1.32 2007/04/19 16:36:09 dufuz Exp $
+ * @version CVS: $Id: GD.php,v 1.33 2007/04/21 20:06:06 dufuz Exp $
* @link http://pear.php.net/package/Image_Transform
*/
@@ -204,6 +204,7 @@
*/
function addText($params)
{
+ $this->old_image = $this->imageHandle;
$params = array_merge($this->_get_default_text_params(), $params);
extract($params);
@@ -217,6 +218,7 @@
} else {
ImagePSText($this->imageHandle, $size, $angle, $x, $y, $c, $font, $text);
}
+
return true;
} // End addText
@@ -243,9 +245,9 @@
$color_mask = $this->_getColor('canvasColor', $options,
array(255, 255, 255));
- $mask = imagecolorresolve($this->imageHandle, $color_mask[0], $color_mask[1],
$color_mask[2]);
+ $mask = imagecolorresolve($this->imageHandle, $color_mask[0], $color_mask[1],
$color_mask[2]);
- $this->old_image = $this->imageHandle;
+ $this->old_image = $this->imageHandle;
// Multiply by -1 to change the sign, so the image is rotated clockwise
$this->imageHandle = ImageRotate($this->imageHandle, $angle * -1, $mask);
@@ -490,7 +492,7 @@
*/
function display($type = '', $quality = null)
{
- return $this->_generate('', $type, $quality);;
+ return $this->_generate('', $type, $quality);
}
/**