diff --git a/Service/Validator/AbstractImageValidator.php b/Service/Validator/AbstractImageValidator.php index a6fdf3b..dc8b33c 100644 --- a/Service/Validator/AbstractImageValidator.php +++ b/Service/Validator/AbstractImageValidator.php @@ -106,7 +106,7 @@ protected function isValid($width, $height, array $configuration) } if (isset($configuration['MaxRatio']) && $this->validateConfig('MaxRatio', $configuration, true)) { - if ($ratio < $configuration['MaxRatio']) { + if ($ratio > $configuration['MaxRatio']) { throw new ValidationException('Maximum ratio must be '.$configuration['MaxRatio']); } }