Gc\Media\Image::getSizeByFixedHeight PHP Method

getSizeByFixedHeight() protected method

Get fixed height
protected getSizeByFixedHeight ( integer $newHeight ) : double
$newHeight integer New height
return double
    protected function getSizeByFixedHeight($newHeight)
    {
        $ratio = $this->width / $this->height;
        $newWidth = $newHeight * $ratio;
        return floor($newWidth);
    }