public function resize($width = null, $height = null)
    {
        $this->styleAttributes['width'] = $width . 'px';
        $this->styleAttributes['height'] = $height . 'px';

        return $this;
    }
public function resize($width = null, $height = null)
    {
        $this->styleAttributes['width'] = $width . 'px';
        $this->styleAttributes['height'] = $height . 'px';

        return $this;
    }
public function resize ( $ width = null , $ height = null ) { $ this -> styleAttributes [ 'width' ] = $ width . 'px' ; $ this -> styleAttributes [ 'height' ] = $ height . 'px' ; return $ this ; }
Resize media by setting attributes

@param  int $width
@param  int $height
@return $this
Resize media by setting attributes