Imbo\Image\Transformation\SmartSize::getSourcePercentageThreshold PHP Method

getSourcePercentageThreshold() private method

This is important in order to avoid using a very small portion of a large image.
private getSourcePercentageThreshold ( $closeness )
$closeness Closeness of crop
    private function getSourcePercentageThreshold($closeness)
    {
        switch ($closeness) {
            case 'close':
                return 0.3;
            case 'wide':
                return 0.66;
            default:
                return 0.5;
        }
    }