ManaPHP\Image::scaleFixedHeight PHP Method

scaleFixedHeight() public method

Scale the image by a given height
public scaleFixedHeight ( integer $height ) : static
$height integer
return static
    public function scaleFixedHeight($height)
    {
        $_width = $this->adapter->getWidth();
        $_height = $this->adapter->getHeight();
        $width = (int) ($_width * $height / $_height);
        $this->adapter->resize($width, $height);
        return $this;
    }