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

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

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

@param int $new_height The height of the image

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