private function get_size_by_fixed_width($new_width)
    {
        $ratio      = $this->height / $this->width;
        $new_height = $new_width * $ratio;

        return $new_height;
    }
private function get_size_by_fixed_width($new_width)
    {
        $ratio      = $this->height / $this->width;
        $new_height = $new_width * $ratio;

        return $new_height;
    }
private function get_size_by_fixed_width ( $ new_width ) { $ ratio = $ this -> height / $ this -> width ; $ new_height = $ new_width * $ ratio ; return $ new_height ; }
Returns the height based on the image width.

@param int $new_width The width of the image

@return int
Returns the height based on the image width .