public function resizeToWidth($width)
    {
        $height = $this->getPropHeight($width);
        $this->resize($width, $height);

        return $this;
    }
public function resizeToWidth($width)
    {
        $height = $this->getPropHeight($width);
        $this->resize($width, $height);

        return $this;
    }
public function resizeToWidth ( $ width ) { $ height = $ this -> getPropHeight ( $ width ) ; $ this -> resize ( $ width , $ height ) ; return $ this ; }
Resize image proportionally basing on the width of the image.

@access public
@param int $width
@return \GImage\Image
Resize image proportionally basing on the width of the image .