protected function intermediateSizeSquare()
    {
        if ($this->canvas['height'] === $this->canvas['width']) {
            $this->intermediate['width'] = $this->canvas['width'];
            $this->intermediate['height'] = $this->canvas['height'];
        } else {
            if ($this->canvas['width'] > $this->canvas['height']) {
                $this->intermediate['width'] = $this->canvas['height'];
                $this->intermediate['height'] = $this->canvas['height'];
            } else {
                $this->intermediate['height'] = $this->canvas['width'];
                $this->intermediate['width'] = $this->canvas['width'];
            }
        }
    }
protected function intermediateSizeSquare()
    {
        if ($this->canvas['height'] === $this->canvas['width']) {
            $this->intermediate['width'] = $this->canvas['width'];
            $this->intermediate['height'] = $this->canvas['height'];
        } else {
            if ($this->canvas['width'] > $this->canvas['height']) {
                $this->intermediate['width'] = $this->canvas['height'];
                $this->intermediate['height'] = $this->canvas['height'];
            } else {
                $this->intermediate['height'] = $this->canvas['width'];
                $this->intermediate['width'] = $this->canvas['width'];
            }
        }
    }
protected function intermediateSizeSquare ( ) { if ( $ this -> canvas [ 'height' ] === $ this -> canvas [ 'width' ] ) { $ this -> intermediate [ 'width' ] = $ this -> canvas [ 'width' ] ; $ this -> intermediate [ 'height' ] = $ this -> canvas [ 'height' ] ; } else { if ( $ this -> canvas [ 'width' ] > $ this -> canvas [ 'height' ] ) { $ this -> intermediate [ 'width' ] = $ this -> canvas [ 'height' ] ; $ this -> intermediate [ 'height' ] = $ this -> canvas [ 'height' ] ; } else { $ this -> intermediate [ 'height' ] = $ this -> canvas [ 'width' ] ; $ this -> intermediate [ 'width' ] = $ this -> canvas [ 'width' ] ; } } }
The source image is landscape, fit as appropriate

@return void
The source image is landscape fit as appropriate