Closed mentisy closed 5 years ago
CakePHP core already has Validation::imageSize() method which can do exact comparisons so why add a new method to this plugin?
Bah, I'll be honest. Didn't check for that in the core. Obviously no need for another in the plugin, so I'll just close this PR.
References issue #518 - Add image validation method checking that exact dimensions match.
Image Validation method
exactDimensions
Currently you can check whether and image is below or above width and height, but no way to check if an image matches the exact dimensions. Granted, you can combine all of the existing validation to get there, but that means too much code.