Neos.Media/Classes/Domain/Model/Adjustment/ResizeImageAdjustment.php
protected function calculateScalingToHeight(BoxInterface $originalDimensions, $requestedHeight)
    {
        if ($this->getAllowUpScaling() === false && $requestedHeight >= $originalDimensions->getHeight()) {
            return $originalDimensions;
        }

        $newDimensions = clone $originalDimensions;
        $newDimensions = $newDimensions->heighten($requestedHeight);

        return $newDimensions;
    }
protected function calculateScalingToHeight(BoxInterface $originalDimensions, $requestedHeight)
    {
        if ($this->getAllowUpScaling() === false && $requestedHeight >= $originalDimensions->getHeight()) {
            return $originalDimensions;
        }

        $newDimensions = clone $originalDimensions;
        $newDimensions = $newDimensions->heighten($requestedHeight);

        return $newDimensions;
    }
protected function calculateScalingToHeight ( BoxInterface $ originalDimensions , $ requestedHeight ) { if ( $ this -> getAllowUpScaling ( ) === false && $ requestedHeight >= $ originalDimensions -> getHeight ( ) ) { return $ originalDimensions ; } $ newDimensions = clone $ originalDimensions ; $ newDimensions = $ newDimensions -> heighten ( $ requestedHeight ) ; return $ newDimensions ; }
Calculates new dimensions with a requested height applied. Takes upscaling into consideration.

@param BoxInterface $originalDimensions
@param integer $requestedHeight
@return BoxInterface
Calculates new dimensions with a requested height applied . Takes upscaling into consideration .