FriendsOfCake / cakephp-upload

CakePHP: Handle file uploading sans ridiculous automagic
https://cakephp-upload.readthedocs.io/
MIT License
551 stars 255 forks source link

Add image validation method checking that exact dimensions match #518

Closed mentisy closed 5 years ago

mentisy commented 5 years ago

This is a feature request.

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.

I will create a pull request for this feature request myself.

jorisvaesen commented 5 years ago

Closing since this is available through Validation::imageSize()