Any way to restrict image uploads based on minimum width or height?
I am looking at using the jQuery plugin for direct uploading of files to my Cloudinary account. For images, I have some strict requirements about minimum image widths and heights.
What is the best way to restrict an upload based on width/height? Essentially I am hoping that I can configure the upload tool to not allow images that are smaller than, say, 500px x 500px. Ideally this would upload the image, then process it and determine the dimensions, and then warn the user that it isn't large enough, and then finally remove the image, not storing it in my account, and allowing the user to try again.
Is something like this possible? Thanks so much.
-
Our jQuery plugin is based on the jQuery-File-Upload library. So you can use the
imageMinWidth
andimageMinHeight
parameters to validate the upload before uploading the image to Cloudinary. So a too-small image won't be uploaded in the first place.-1
Post is closed for comments.
Comments
1 comment