Possible to validate image dimensions while uploading?
Is it possible to validate if an image being uploaded to the page conforms to specific dimensions of height or width?
Is it possible to validate if an image being uploaded to the page conforms to specific dimensions of height or width?
Thanks for the clarification, @aem-explorer!
There are different approaches to this requirement.
You could most probably build a custom validation based on Granite UIs foundation validation as outlined here.
On the other hand, you could leverage renditions or smart cropping to ensure that all your assets do have proper variations to fit all available components, view ports, etc.
Hope that helps!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.