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

        $newDimensions = clone $originalDimensions;
        $newDimensions = $newDimensions->widen($requestedWidth);

        return $newDimensions;
    }
protected function calculateScalingToWidth(BoxInterface $originalDimensions, $requestedWidth)
    {
        if ($this->getAllowUpScaling() === false && $requestedWidth >= $originalDimensions->getWidth()) {
            return $originalDimensions;
        }

        $newDimensions = clone $originalDimensions;
        $newDimensions = $newDimensions->widen($requestedWidth);

        return $newDimensions;
    }
protected function calculateScalingToWidth ( BoxInterface $ originalDimensions , $ requestedWidth ) { if ( $ this -> getAllowUpScaling ( ) === false && $ requestedWidth >= $ originalDimensions -> getWidth ( ) ) { return $ originalDimensions ; } $ newDimensions = clone $ originalDimensions ; $ newDimensions = $ newDimensions -> widen ( $ requestedWidth ) ; return $ newDimensions ; }
Calculates new dimensions with a requested width applied. Takes upscaling into consideration.

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