Josegonzalez\Upload\Validation\Traits\ImageValidationTrait::isBelowMaxHeight PHP Method

isBelowMaxHeight() public static method

Check that the file is below the maximum height requirement
public static isBelowMaxHeight ( mixed $check, integer $height ) : boolean
$check mixed Value to check
$height integer Height of Image
return boolean Success
    public static function isBelowMaxHeight($check, $height)
    {
        // Non-file uploads also mean the height is too big
        if (!isset($check['tmp_name']) || !strlen($check['tmp_name'])) {
            return false;
        }
        list(, $imgHeight) = getimagesize($check['tmp_name']);
        return $height > 0 && $imgHeight <= $height;
    }