cvs: pear /Image_Transform Transform.php /Image_Transform/Driver GD1.php Imagick.php

From: Date: Tue, 07 Mar 2006 20:54:08 +0000
Subject: cvs: pear /Image_Transform Transform.php /Image_Transform/Driver GD1.php Imagick.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38963@lists.php.net to get a copy of this message
jausions Tue Mar 7 20:54:08 2006 UTC Modified files: /pear/Image_Transform/Driver GD1.php Imagick.php /pear/Image_Transform Transform.php Log: Fix for Bug #7045 "resize options argument is not passed" http://cvs.php.net/viewcvs.cgi/pear/Image_Transform/Driver/GD1.php?r1=1.3&r2=1.4&diff_format=u Index: pear/Image_Transform/Driver/GD1.php diff -u pear/Image_Transform/Driver/GD1.php:1.3 pear/Image_Transform/Driver/GD1.php:1.4 --- pear/Image_Transform/Driver/GD1.php:1.3 Thu Jul 8 21:42:26 2004 +++ pear/Image_Transform/Driver/GD1.php Tue Mar 7 20:54:08 2006 @@ -24,7 +24,7 @@ * @package * @author NAWAL ASWAN * @copyright Copyright (c) 2003 - * @version $Id: GD1.php,v 1.3 2004/07/08 21:42:26 reywob Exp $ + * @version $Id: GD1.php,v 1.4 2006/03/07 20:54:08 jausions Exp $ * @access public **/ Class Image_Transform_Driver_GD1 extends Image_Transform_Driver_GD @@ -63,11 +63,12 @@ * * @param $new_x int new width * @param $new_y int new height + * @param mixed $options Optional parameters * * @return true on success or PEAR Error object on error * @see PEAR::isError() */ - function _resize($new_x, $new_y) { + function _resize($new_x, $new_y, $options = null) { if ($this->resized === true) { return PEAR::raiseError('You have already resized the image without saving it. Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE); } http://cvs.php.net/viewcvs.cgi/pear/Image_Transform/Driver/Imagick.php?r1=1.6&r2=1.7&diff_format=u Index: pear/Image_Transform/Driver/Imagick.php diff -u pear/Image_Transform/Driver/Imagick.php:1.6 pear/Image_Transform/Driver/Imagick.php:1.7 --- pear/Image_Transform/Driver/Imagick.php:1.6 Fri Jul 15 05:18:42 2005 +++ pear/Image_Transform/Driver/Imagick.php Tue Mar 7 20:54:08 2006 @@ -18,7 +18,7 @@ * @author Peter Bowyer <peter@mapledesign.co.uk> * @copyright 2002-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Imagick.php,v 1.6 2005/07/15 05:18:42 jausions Exp $ + * @version CVS: $Id: Imagick.php,v 1.7 2006/03/07 20:54:08 jausions Exp $ * @deprecated * @link http://pear.php.net/package/Image_Transform */ @@ -96,11 +96,12 @@ * * @param int new_x new width * @param int new_y new width + * @param mixed $options Optional parameters * * @return none * @see PEAR::isError() */ - function _resize($new_x, $new_y) + function _resize($new_x, $new_y, $options = null) { if ($img2 = imagick_copy_resize($this->imageHandle, $new_x, $new_y, IMAGICK_FILTER_CUBIC, 1)){ $this->oldImage = $this->imageHandle; http://cvs.php.net/viewcvs.cgi/pear/Image_Transform/Transform.php?r1=1.34&r2=1.35&diff_format=u Index: pear/Image_Transform/Transform.php diff -u pear/Image_Transform/Transform.php:1.34 pear/Image_Transform/Transform.php:1.35 --- pear/Image_Transform/Transform.php:1.34 Wed Mar 1 17:40:18 2006 +++ pear/Image_Transform/Transform.php Tue Mar 7 20:54:08 2006 @@ -22,7 +22,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: Transform.php,v 1.34 2006/03/01 17:40:18 jausions Exp $ + * @version CVS: $Id: Transform.php,v 1.35 2006/03/07 20:54:08 jausions Exp $ * @link http://pear.php.net/package/Image_Transform */ @@ -265,7 +265,7 @@ : $this->_parse_size($new_y, $this->img_y); // Now do the library specific resizing. - return $this->_resize($new_x, $new_y); + return $this->_resize($new_x, $new_y, $options); } // End resize

« previous php.pear.cvs (#38963) next »