Our Upload Widget supports client-side based downscaling of uploaded images to fit within given maxImageWidth
and maxImageHeight
, while preserving the original image's Aspect-Ratio.
For example, with a configuration of maxImageWidth: 500
& maxImageHeight: 500
, uploading a 600x400 image, the result will rescaled to 500x333.
Note that smaller images will not be upscaled.
Additionally, we support providing minImageWidth
& minImageHeight
which configure limits to the files the Widget will accept for upload to Cloudinary. An image whose dimensions are below the specified values will not be uploaded, and an error will be shown.
More information about client-side upload options can be found in the Upload Widget reference documentation.
Comments
0 comments
Please sign in to leave a comment.