How to set max image height?
I am working on an app where users can upload images. I have set a max width of 400 and using the 'fill' value for crop like so:

-
Hi Nick,
Thanks for reaching out. I would advise the c_lfill transformation. This will scale the image down to the maximum dimension(s) that you specify, only if the original image is larger than what you've specified. I can link to our documentation on that cropping mode for your reference: https://cloudinary.com/documentation/transformation_reference#c_lfill
Can you take a look at those docs and let me know how this works for your use case?Kind Regards,
Tia
Post is closed for comments.
Comments
1 comment