public function fitToWidth($width)
    {
        $height = $width * ($this->height / $this->width);
        return $this->resize($width, $height);
    }
public function fitToWidth($width)
    {
        $height = $width * ($this->height / $this->width);
        return $this->resize($width, $height);
    }
public function fitToWidth ( $ width ) { $ height = $ width * ( $ this -> height / $ this -> width ) ; return $ this -> resize ( $ width , $ height ) ; }
Proportionally resize to the specified width
@param int $width
@return $this
Proportionally resize to the specified width