original_string: final public function resizeImage($width = null, $height = null)
  	{
  		if (is_int($width) and is_int($height)) {
  			$new_image = imagecreatetruecolor($width, $height);
  			imagecopyresampled(
  				$new_image,
  				$this->_image_handle,
  				0,
  				0,
  				0,
  				0,
  				$width,
  				$height,
  				$this->imageWidth(),
  				$this->imageHeight()
  			);
  			if (is_resource($new_image)) {
  				$this->_image_handle = $new_image;
  			}
  		}
  		return $this;
  	}
code: final public function resizeImage($width = null, $height = null)
  	{
  		if (is_int($width) and is_int($height)) {
  			$new_image = imagecreatetruecolor($width, $height);
  			imagecopyresampled(
  				$new_image,
  				$this->_image_handle,
  				0,
  				0,
  				0,
  				0,
  				$width,
  				$height,
  				$this->imageWidth(),
  				$this->imageHeight()
  			);
  			if (is_resource($new_image)) {
  				$this->_image_handle = $new_image;
  			}
  		}
  		return $this;
  	}
code_tokens: final public function resizeImage ( $ width = null , $ height = null ) { if ( is_int ( $ width ) and is_int ( $ height ) ) { $ new_image = imagecreatetruecolor ( $ width , $ height ) ; imagecopyresampled ( $ new_image , $ this -> _image_handle , 0 , 0 , 0 , 0 , $ width , $ height , $ this -> imageWidth ( ) , $ this -> imageHeight ( ) ) ; if ( is_resource ( $ new_image ) ) { $ this -> _image_handle = $ new_image ; } } return $ this ; }
docstring: Resize an image to an exact width and height
  
  @param  int $width  Width in pixels
  @param  int $height Height in pixels
  @return self        With $this->_image_handle as resized image
docstring_tokens: Resize an image to an exact width and height