Minimum width, and height validation?
Hello, i know there are ways to check for required file size, dimensions on the client, but wondered if the cloudinary api provides an easy way to perform these checks server side? - i couldnt see anything in the docs, have i missed something?
-
Hi Samuel,
You can use our Incoming Transformations feature to apply a transformation to images at the time they're being uploaded. The transformation(s) you use on the incoming transformation can include resizing the image, cropping, changing the quality, etc. This doesn't specifically prevent a user from uploader a smaller file size or image dimensions than you require but would allow you to resize the images to an acceptable size before saving.
If you're using our File upload widget, there are also client-side options to enforce a minimum height and/or width, via the minImageWidth and minImageHeight parameters of the widget.
If you have any other questions, or any problem getting either of those options to work, please let me know, or contact our support team via https://support.cloudinary.com/
1
Post is closed for comments.
Comments
1 comment