public function resizeXorY($x, $y)
    {
        if ($x > $y) {
            $this->resizeX($x);
        } else {
            $this->resizeY($y);
        }
    }
public function resizeXorY($x, $y)
    {
        if ($x > $y) {
            $this->resizeX($x);
        } else {
            $this->resizeY($y);
        }
    }
public function resizeXorY ( $ x , $ y ) { if ( $ x > $ y ) { $ this -> resizeX ( $ x ) ; } else { $ this -> resizeY ( $ y ) ; } }
Resize image to, whats greater width or height.

@param int $x Width in px
@param int $y Height in px

@return \Intervention\Image\Facades\Image
Resize image to whats greater width or height .