Show error Message when image aspect ration is smaller then given aspect ration
Hello All,
Use case : I am given minImageHeight/minImageWidth 700px*700px. When user browse image of smaller compare to given aspect ratio. then crop & save button disable and when i try to upload without cropping then it show me error like :
-
Hey Ankur, thanks for reaching out!
At the moment, when using the upload widget with
cropping:true
, and trying to upload an image that is smaller than theminImageHeight/minImageWidth
dimensions, the upload fails only after the cropping stage. As discussed in the separate ticket you've opened with us (#150016), I've created an internal ticket for our team to consider performing the client-side validation before the cropping step. This way an error message will be shown (and the cropping step will not be reached).I'll update here, and in the ticket you have with us, about any progress made regarding this matter.
Please sign in to leave a comment.
Comments
5 comments