src/Sulu/Bundle/MediaBundle/Media/ImageConverter/Cropper/Cropper.php
private function isNotSmallerThanFormat($width, $height, array $format)
    {
        if (isset($format['scale']['x']) && $width < $format['scale']['x']) {
            return false;
        }
        if (isset($format['scale']['y']) && $height < $format['scale']['y']) {
            return false;
        }

        return true;
    }
private function isNotSmallerThanFormat($width, $height, array $format)
    {
        if (isset($format['scale']['x']) && $width < $format['scale']['x']) {
            return false;
        }
        if (isset($format['scale']['y']) && $height < $format['scale']['y']) {
            return false;
        }

        return true;
    }
private function isNotSmallerThanFormat ( $ width , $ height , array $ format ) { if ( isset ( $ format [ 'scale' ] [ 'x' ] ) && $ width < $ format [ 'scale' ] [ 'x' ] ) { return false ; } if ( isset ( $ format [ 'scale' ] [ 'y' ] ) && $ height < $ format [ 'scale' ] [ 'y' ] ) { return false ; } return true ; }
Returns true iff the crop is greater or equal to the size of a given format.

@param $width
@param $height
@param array $format

@return bool
Returns true iff the crop is greater or equal to the size of a given format .