protected function canvasSpacingY()
    {
        $this->canvas['spacing']['y'] = 0;

        if ($this->intermediate['height'] < $this->canvas['height']) {

            $difference = $this->canvas['height'] - $this->intermediate['height'];

            if ($difference % 2 === 0) {
                $this->canvas['spacing']['y'] = $difference / 2;
            } else {
                if ($difference > 1) {
                    $this->canvas['spacing']['y'] = ($difference - 1) / 2 + 1;
                } else {
                    $this->canvas['spacing']['y'] = 1;
                }
            }
        }
    }
protected function canvasSpacingY()
    {
        $this->canvas['spacing']['y'] = 0;

        if ($this->intermediate['height'] < $this->canvas['height']) {

            $difference = $this->canvas['height'] - $this->intermediate['height'];

            if ($difference % 2 === 0) {
                $this->canvas['spacing']['y'] = $difference / 2;
            } else {
                if ($difference > 1) {
                    $this->canvas['spacing']['y'] = ($difference - 1) / 2 + 1;
                } else {
                    $this->canvas['spacing']['y'] = 1;
                }
            }
        }
    }
protected function canvasSpacingY ( ) { $ this -> canvas [ 'spacing' ] [ 'y' ] = 0 ; if ( $ this -> intermediate [ 'height' ] < $ this -> canvas [ 'height' ] ) { $ difference = $ this -> canvas [ 'height' ] - $ this -> intermediate [ 'height' ] ; if ( $ difference % 2 === 0 ) { $ this -> canvas [ 'spacing' ] [ 'y' ] = $ difference / 2 ; } else { if ( $ difference > 1 ) { $ this -> canvas [ 'spacing' ] [ 'y' ] = ( $ difference - 1 ) / 2 + 1 ; } else { $ this -> canvas [ 'spacing' ] [ 'y' ] = 1 ; } } } }
Calculate any required y canvas spacing, necessary if the intermediate image will be
smaller than the canvas

@return void
Calculate any required y canvas spacing necessary if the intermediate image will be smaller than the canvas