CImage.php
public function reCalculateDimensions()
    {
        $this->log("Re-calculate image dimensions, newWidth x newHeigh was: " . $this->newWidth . " x " . $this->newHeight);

        $this->newWidth  = $this->newWidthOrig;
        $this->newHeight = $this->newHeightOrig;
        $this->crop      = $this->cropOrig;

        $this->initDimensions()
             ->calculateNewWidthAndHeight();

        return $this;
    }
public function reCalculateDimensions()
    {
        $this->log("Re-calculate image dimensions, newWidth x newHeigh was: " . $this->newWidth . " x " . $this->newHeight);

        $this->newWidth  = $this->newWidthOrig;
        $this->newHeight = $this->newHeightOrig;
        $this->crop      = $this->cropOrig;

        $this->initDimensions()
             ->calculateNewWidthAndHeight();

        return $this;
    }
public function reCalculateDimensions ( ) { $ this -> log ( "Re-calculate image dimensions, newWidth x newHeigh was: " . $ this -> newWidth . " x " . $ this -> newHeight ) ; $ this -> newWidth = $ this -> newWidthOrig ; $ this -> newHeight = $ this -> newHeightOrig ; $ this -> crop = $ this -> cropOrig ; $ this -> initDimensions ( ) -> calculateNewWidthAndHeight ( ) ; return $ this ; }
Re-calculate image dimensions when original image dimension has changed.

@return $this
Re - calculate image dimensions when original image dimension has changed .