src/Support/Image/Resizer.php
private function getSizeByFixedHeight(ImageInterface $image, $newHeight)
    {
        $box   = $image->getSize();
        $ratio = $box->getWidth() / $box->getHeight();

        $newWidth = $newHeight * $ratio;

        return $newWidth;
    }
private function getSizeByFixedHeight(ImageInterface $image, $newHeight)
    {
        $box   = $image->getSize();
        $ratio = $box->getWidth() / $box->getHeight();

        $newWidth = $newHeight * $ratio;

        return $newWidth;
    }
private function getSizeByFixedHeight ( ImageInterface $ image , $ newHeight ) { $ box = $ image -> getSize ( ) ; $ ratio = $ box -> getWidth ( ) / $ box -> getHeight ( ) ; $ newWidth = $ newHeight * $ ratio ; return $ newWidth ; }
Returns the width based on the new image height.

@param ImageInterface $image
@param int            $newHeight - The image's new height.

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